﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Data.Objects.DataClasses;

namespace DomainLayer.Data.Entities
{
	[MetadataType(typeof(AbnormInfoMetadata))]
	public partial class AbnormInfo
	{
		internal sealed class AbnormInfoMetadata
		{
		
			[Required(ErrorMessage="Abnorm Info is required")]
    		public Int64 AbnormInfoID { get; set; }

			[Required(ErrorMessage="Way Bill N O is required")]
    		public Int64 WayBillNO { get; set; }

			[Required(ErrorMessage="Abnorm Type is required")]
			[StringLength(4)]
    		public String AbnormType { get; set; }

			[StringLength(200)]
    		public String AbnormReason { get; set; }

    		public Int32 SubmittedBy { get; set; }

    		public Int32 SubmittedStation { get; set; }

			[Required(ErrorMessage="Is Deal is required")]
    		public Boolean IsDeal { get; set; }

			[StringLength(200)]
    		public String Remark { get; set; }

			[StringLength(4)]
    		public String AbnormStatus { get; set; }

    		public Int32 DealBy { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime DealTime { get; set; }

    		public Int32 DealStation { get; set; }

			[StringLength(10)]
    		public String DealResult { get; set; }

    		public Int32 ConfirmBy { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime ConfirmTime { get; set; }

    		public Int32 ConfirmStation { get; set; }

			[StringLength(10)]
    		public String ConfirmResult { get; set; }

    		public Boolean IsDelete { get; set; }

			[Required(ErrorMessage="Creat By is required")]
    		public Int32 CreatBy { get; set; }

			[Required(ErrorMessage="Creat Station is required")]
    		public Int32 CreatStation { get; set; }

			[Required(ErrorMessage="Creat Time is required")]
			[DataType(DataType.DateTime)]
    		public DateTime CreatTime { get; set; }

			[Required(ErrorMessage="Update By is required")]
    		public Int32 UpdateBy { get; set; }

			[Required(ErrorMessage="Update Time is required")]
			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

			[Required(ErrorMessage="Update Station is required")]
    		public Int32 UpdateStation { get; set; }

		}
	}
	
	[MetadataType(typeof(AbnormWaybillMetadata))]
	public partial class AbnormWaybill
	{
		internal sealed class AbnormWaybillMetadata
		{
		
			[Required(ErrorMessage="Abnorm Waybill is required")]
    		public Int64 AbnormWaybillID { get; set; }

    		public Int64 WaybillNO { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime CreateTime { get; set; }

			[StringLength(20)]
    		public String Reason { get; set; }

			[StringLength(200)]
    		public String Remark { get; set; }

			[StringLength(200)]
    		public String Description { get; set; }

			[StringLength(20)]
    		public String AbnormStatus { get; set; }

			[StringLength(20)]
    		public String DealStatus { get; set; }

			[StringLength(200)]
    		public String StationReplyContent { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime StationReplyTime { get; set; }

    		public Int32 UpdateBy { get; set; }

    		public Int32 UpdateStation { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

    		public Boolean IsDelete { get; set; }

    		public Boolean IsSynVancl { get; set; }

		}
	}
	
	[MetadataType(typeof(AbnormWaybillLogMetadata))]
	public partial class AbnormWaybillLog
	{
		internal sealed class AbnormWaybillLogMetadata
		{
		
			[Required(ErrorMessage="I D is required")]
    		public Int64 ID { get; set; }

    		public Int64 WaybillNO { get; set; }

    		public Int32 CreateBy { get; set; }

    		public Int32 CreateStation { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime CreateTime { get; set; }

			[StringLength(200)]
    		public String Content { get; set; }

    		public Int32 UpdateBy { get; set; }

    		public Int32 UpdateStation { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

    		public Boolean IsDelete { get; set; }

		}
	}
	
	[MetadataType(typeof(AbnormWaybillReplyMetadata))]
	public partial class AbnormWaybillReply
	{
		internal sealed class AbnormWaybillReplyMetadata
		{
		
			[Required(ErrorMessage="I D is required")]
    		public Int64 ID { get; set; }

    		public Int64 AbnormWaybillID { get; set; }

    		public Int64 WaybillNO { get; set; }

			[StringLength(200)]
    		public String VanclReplyContent { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime VanclReplyTime { get; set; }

    		public Int32 UpdateBy { get; set; }

    		public Int32 UpdateStation { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

    		public Boolean IsDelete { get; set; }

		}
	}
	
	[MetadataType(typeof(AreaMetadata))]
	public partial class Area
	{
		internal sealed class AreaMetadata
		{
		
			[Required(ErrorMessage="Area is required")]
			[StringLength(50)]
    		public String AreaID { get; set; }

			[Required(ErrorMessage="Area Name is required")]
			[StringLength(50)]
    		public String AreaName { get; set; }

			[Required(ErrorMessage="City is required")]
			[StringLength(10)]
    		public String CityID { get; set; }

			[StringLength(10)]
    		public String PostCode { get; set; }

			[StringLength(10)]
    		public String ZoneCode { get; set; }

    		public Decimal TransferFee { get; set; }

    		public Int32 Sorting { get; set; }

			[Required(ErrorMessage="Is Deleted is required")]
    		public Boolean IsDeleted { get; set; }

			[Required(ErrorMessage="Creat By is required")]
    		public Int32 CreatBy { get; set; }

			[Required(ErrorMessage="Creat Time is required")]
			[DataType(DataType.DateTime)]
    		public DateTime CreatTime { get; set; }

			[Required(ErrorMessage="Creat Station is required")]
    		public Int32 CreatStation { get; set; }

			[Required(ErrorMessage="Update By is required")]
    		public Int32 UpdateBy { get; set; }

			[Required(ErrorMessage="Update Time is required")]
			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

			[Required(ErrorMessage="Update Station is required")]
    		public Int32 UpdateStation { get; set; }

		}
	}
	
	[MetadataType(typeof(AreaExpressCompanyMetadata))]
	public partial class AreaExpressCompany
	{
		internal sealed class AreaExpressCompanyMetadata
		{
		
			[Required(ErrorMessage="Area Express Company is required")]
    		public Int32 AreaExpressCompanyID { get; set; }

			[Required(ErrorMessage="Area is required")]
			[StringLength(50)]
    		public String AreaID { get; set; }

			[Required(ErrorMessage="Express Company is required")]
    		public Int32 ExpressCompanyID { get; set; }

			[Required(ErrorMessage="Limit Time is required")]
    		public Int32 LimitTime { get; set; }

			[Required(ErrorMessage="Begin Time is required")]
			[DataType(DataType.DateTime)]
    		public DateTime BeginTime { get; set; }

			[Required(ErrorMessage="End Time is required")]
			[DataType(DataType.DateTime)]
    		public DateTime EndTime { get; set; }

			[Required(ErrorMessage="Sorting is required")]
    		public Int32 Sorting { get; set; }

			[Required(ErrorMessage="Is Deleted is required")]
    		public Boolean IsDeleted { get; set; }

			[Required(ErrorMessage="Creat By is required")]
    		public Int32 CreatBy { get; set; }

			[Required(ErrorMessage="Creat Station is required")]
    		public Int32 CreatStation { get; set; }

			[Required(ErrorMessage="Creat Time is required")]
			[DataType(DataType.DateTime)]
    		public DateTime CreatTime { get; set; }

			[Required(ErrorMessage="Update By is required")]
    		public Int32 UpdateBy { get; set; }

			[Required(ErrorMessage="Update Time is required")]
			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

			[Required(ErrorMessage="Update Station is required")]
    		public Int32 UpdateStation { get; set; }

		}
	}
	
	[MetadataType(typeof(AreaRoleUserMappingMetadata))]
	public partial class AreaRoleUserMapping
	{
		internal sealed class AreaRoleUserMappingMetadata
		{
		
			[Required(ErrorMessage="Id is required")]
    		public Int32 Id { get; set; }

			[StringLength(10)]
    		public String Code { get; set; }

    		public Int32 Type { get; set; }

			[StringLength(20)]
    		public String EmployeeCode { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime LastLoginTime { get; set; }

    		public Int64 SId { get; set; }

    		public Boolean IsDeleted { get; set; }

		}
	}
	
	[MetadataType(typeof(AudiMetadata))]
	public partial class Audi
	{
		internal sealed class AudiMetadata
		{
		
			[Required(ErrorMessage="Id is required")]
    		public Decimal Id { get; set; }

    		public Int32 FlowPointId { get; set; }

    		public Int32 RoleId { get; set; }

    		public Int32 CreateUser { get; set; }

    		public Int32 UpdateUser { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime CreateTime { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

    		public Boolean IsDelete { get; set; }

		}
	}
	
	[MetadataType(typeof(BatchMetadata))]
	public partial class Batch
	{
		internal sealed class BatchMetadata
		{
		
			[Required(ErrorMessage="Batch is required")]
    		public Int64 BatchID { get; set; }

			[Required(ErrorMessage="Batch N O is required")]
			[StringLength(20)]
    		public String BatchNO { get; set; }

    		public Decimal Amount { get; set; }

    		public Int32 PackageNum { get; set; }

    		public Double Weight { get; set; }

    		public Int32 Operator { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime OperTime { get; set; }

    		public Int32 OperStation { get; set; }

    		public Int32 ReceiveBy { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime ReceiveTime { get; set; }

    		public Int32 ReceiveStation { get; set; }

    		public Int32 Driver { get; set; }

			[StringLength(10)]
    		public String CarNO { get; set; }

			[Required(ErrorMessage="Creat By is required")]
    		public Int32 CreatBy { get; set; }

			[Required(ErrorMessage="Creat Station is required")]
    		public Int32 CreatStation { get; set; }

			[Required(ErrorMessage="Creat Time is required")]
			[DataType(DataType.DateTime)]
    		public DateTime CreatTime { get; set; }

			[Required(ErrorMessage="Update By is required")]
    		public Int32 UpdateBy { get; set; }

			[Required(ErrorMessage="Update Station is required")]
    		public Int32 UpdateStation { get; set; }

			[Required(ErrorMessage="Update Time is required")]
			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

			[Required(ErrorMessage="Is Delete is required")]
    		public Boolean IsDelete { get; set; }

			[DataType(DataType.EmailAddress)]
    		public Boolean IsSendEmail { get; set; }

		}
	}
	
	[MetadataType(typeof(BatchDetailMetadata))]
	public partial class BatchDetail
	{
		internal sealed class BatchDetailMetadata
		{
		
			[Required(ErrorMessage="Batch Detail is required")]
    		public Int64 BatchDetailID { get; set; }

			[Required(ErrorMessage="Batch N O is required")]
			[StringLength(20)]
    		public String BatchNO { get; set; }

    		public Int64 WayBillNo { get; set; }

			[StringLength(20)]
    		public String CustomerBatchNO { get; set; }

			[StringLength(20)]
    		public String CustomerOrder { get; set; }

			[Required(ErrorMessage="Is Delete is required")]
    		public Boolean IsDelete { get; set; }

			[Required(ErrorMessage="Creat By is required")]
    		public Int32 CreatBy { get; set; }

			[Required(ErrorMessage="Creat Time is required")]
			[DataType(DataType.DateTime)]
    		public DateTime CreatTime { get; set; }

			[Required(ErrorMessage="Update By is required")]
    		public Int32 UpdateBy { get; set; }

			[Required(ErrorMessage="Update Time is required")]
			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

		}
	}
	
	[MetadataType(typeof(CityMetadata))]
	public partial class City
	{
		internal sealed class CityMetadata
		{
		
			[Required(ErrorMessage="City is required")]
			[StringLength(10)]
    		public String CityID { get; set; }

			[Required(ErrorMessage="City Name is required")]
			[StringLength(50)]
    		public String CityName { get; set; }

			[Required(ErrorMessage="Province is required")]
			[StringLength(10)]
    		public String ProvinceID { get; set; }

    		public Int32 ExpressCompanyID { get; set; }

			[Required(ErrorMessage="Is Deleted is required")]
    		public Boolean IsDeleted { get; set; }

		}
	}
	
	[MetadataType(typeof(CustomerBatchPickMetadata))]
	public partial class CustomerBatchPick
	{
		internal sealed class CustomerBatchPickMetadata
		{
		
			[Required(ErrorMessage="Auto is required")]
    		public Int32 AutoID { get; set; }

			[Required(ErrorMessage="Form Code is required")]
    		public Int64 FormCode { get; set; }

			[Required(ErrorMessage="Batch Pick Code is required")]
			[StringLength(50)]
    		public String BatchPickCode { get; set; }

			[Required(ErrorMessage="Batch Pick Position is required")]
			[StringLength(50)]
    		public String BatchPickPosition { get; set; }

			[Required(ErrorMessage="Create Time is required")]
			[DataType(DataType.DateTime)]
    		public DateTime CreateTime { get; set; }

			[Required(ErrorMessage="House Code is required")]
			[StringLength(20)]
    		public String HouseCode { get; set; }

		}
	}
	
	[MetadataType(typeof(DispAddressMetadata))]
	public partial class DispAddress
	{
		internal sealed class DispAddressMetadata
		{
		
			[Required(ErrorMessage="Id is required")]
    		public Int32 Id { get; set; }

			[Required(ErrorMessage="City is required")]
			[StringLength(50)]
    		public String City { get; set; }

			[Required(ErrorMessage="Address is required")]
			[StringLength(100)]
    		public String Address { get; set; }

			[Required(ErrorMessage="Hash Address is required")]
			[StringLength(100)]
    		public String HashAddress { get; set; }

			[Required(ErrorMessage="Station is required")]
    		public Int32 StationId { get; set; }

			[Required(ErrorMessage="Confirm Count is required")]
    		public Int32 ConfirmCount { get; set; }

			[Required(ErrorMessage="Create Time is required")]
			[DataType(DataType.DateTime)]
    		public DateTime CreateTime { get; set; }

			[Required(ErrorMessage="Update Time is required")]
			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

			[Required(ErrorMessage="Is Enabled is required")]
    		public Boolean IsEnabled { get; set; }

			[StringLength(100)]
    		public String ExpressCompany { get; set; }

    		public Int32 Sources { get; set; }

		}
	}
	
	[MetadataType(typeof(DispAddressVJiaMetadata))]
	public partial class DispAddressVJia
	{
		internal sealed class DispAddressVJiaMetadata
		{
		
			[Required(ErrorMessage="Id is required")]
    		public Int32 Id { get; set; }

			[Required(ErrorMessage="City is required")]
			[StringLength(50)]
    		public String City { get; set; }

			[StringLength(100)]
    		public String Address { get; set; }

			[StringLength(100)]
    		public String HashAddress { get; set; }

			[Required(ErrorMessage="Express Company is required")]
			[StringLength(100)]
    		public String ExpressCompany { get; set; }

			[Required(ErrorMessage="Confirm Count is required")]
    		public Int32 ConfirmCount { get; set; }

			[Required(ErrorMessage="Create Time is required")]
			[DataType(DataType.DateTime)]
    		public DateTime CreateTime { get; set; }

			[Required(ErrorMessage="Update Time is required")]
			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

			[Required(ErrorMessage="Is Enabled is required")]
    		public Boolean IsEnabled { get; set; }

		}
	}
	
	[MetadataType(typeof(DistrictMetadata))]
	public partial class District
	{
		internal sealed class DistrictMetadata
		{
		
			[Required(ErrorMessage="District is required")]
			[StringLength(10)]
    		public String DistrictID { get; set; }

			[Required(ErrorMessage="District Name is required")]
			[StringLength(50)]
    		public String DistrictName { get; set; }

			[Required(ErrorMessage="Is Deleted is required")]
    		public Boolean IsDeleted { get; set; }

		}
	}
	
	[MetadataType(typeof(EmployeeMetadata))]
	public partial class Employee
	{
		internal sealed class EmployeeMetadata
		{
		
			[Required(ErrorMessage="Employee is required")]
    		public Int32 EmployeeID { get; set; }

			[Required(ErrorMessage="Employee Code is required")]
			[StringLength(20)]
    		public String EmployeeCode { get; set; }

			[StringLength(20)]
    		public String EmployeeOldCode { get; set; }

			[Required(ErrorMessage="Employee Name is required")]
			[StringLength(50)]
    		public String EmployeeName { get; set; }

			[Required(ErrorMessage="Sex is required")]
    		public Boolean Sex { get; set; }

			[Required(ErrorMessage="Pass Word is required")]
			[StringLength(100)]
    		public String PassWord { get; set; }

			[StringLength(100)]
    		public String Address { get; set; }

			[StringLength(50)]
			[DataType(DataType.PhoneNumber)]
    		public String Telephone { get; set; }

			[StringLength(50)]
    		public String IDCard { get; set; }

			[StringLength(50)]
    		public String RelationMan { get; set; }

			[StringLength(50)]
			[DataType(DataType.PhoneNumber)]
    		public String RelationPhone { get; set; }

			[StringLength(50)]
    		public String Relation { get; set; }

			[StringLength(15)]
			[DataType(DataType.PhoneNumber)]
    		public String CellPhone { get; set; }

			[StringLength(50)]
    		public String PostID { get; set; }

			[StringLength(50)]
			[DataType(DataType.EmailAddress)]
    		public String eEmail { get; set; }

    		public Int32 StationID { get; set; }

    		public Decimal Deposit { get; set; }

			[StringLength(20)]
    		public String PDACode { get; set; }

			[StringLength(20)]
    		public String POSCode { get; set; }

			[Required(ErrorMessage="Sorting is required")]
    		public Int32 Sorting { get; set; }

			[Required(ErrorMessage="Is Deleted is required")]
    		public Boolean IsDeleted { get; set; }

    		public Int32 CreatBy { get; set; }

    		public Int32 CreateStationID { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime CreateTime { get; set; }

    		public Int32 UpdateBy { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

    		public Int32 UpdateStationID { get; set; }

		}
	}
	
	[MetadataType(typeof(EmployeeMenuMetadata))]
	public partial class EmployeeMenu
	{
		internal sealed class EmployeeMenuMetadata
		{
		
			[Required(ErrorMessage="User Menu is required")]
    		public Int32 UserMenuID { get; set; }

			[Required(ErrorMessage="Employee is required")]
    		public Int32 EmployeeID { get; set; }

			[Required(ErrorMessage="Menu is required")]
    		public Int32 MenuID { get; set; }

			[Required(ErrorMessage="Is Deleted is required")]
    		public Boolean IsDeleted { get; set; }

			[Required(ErrorMessage="Creat By is required")]
    		public Int32 CreatBy { get; set; }

			[Required(ErrorMessage="Creat Station is required")]
    		public Int32 CreatStation { get; set; }

			[Required(ErrorMessage="Creat Time is required")]
			[DataType(DataType.DateTime)]
    		public DateTime CreatTime { get; set; }

			[Required(ErrorMessage="Update By is required")]
    		public Int32 UpdateBy { get; set; }

			[Required(ErrorMessage="Update Time is required")]
			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

			[Required(ErrorMessage="Update Station is required")]
    		public Int32 UpdateStation { get; set; }

		}
	}
	
	[MetadataType(typeof(EmployeeRoleMetadata))]
	public partial class EmployeeRole
	{
		internal sealed class EmployeeRoleMetadata
		{
		
			[Required(ErrorMessage="Employee Role is required")]
    		public Int32 EmployeeRoleID { get; set; }

			[Required(ErrorMessage="Employee is required")]
    		public Int32 EmployeeID { get; set; }

			[Required(ErrorMessage="Role is required")]
    		public Int32 RoleID { get; set; }

			[Required(ErrorMessage="Is Deleted is required")]
    		public Boolean IsDeleted { get; set; }

			[Required(ErrorMessage="Creat By is required")]
    		public Int32 CreatBy { get; set; }

			[Required(ErrorMessage="Creat Station is required")]
    		public Int32 CreatStation { get; set; }

			[Required(ErrorMessage="Creat Time is required")]
			[DataType(DataType.DateTime)]
    		public DateTime CreatTime { get; set; }

			[Required(ErrorMessage="Update By is required")]
    		public Int32 UpdateBy { get; set; }

			[Required(ErrorMessage="Update Sation is required")]
    		public Int32 UpdateSation { get; set; }

			[Required(ErrorMessage="Update Time is required")]
			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

		}
	}
	
	[MetadataType(typeof(ExpressCompanyMetadata))]
	public partial class ExpressCompany
	{
		internal sealed class ExpressCompanyMetadata
		{
		
			[Required(ErrorMessage="Express Company is required")]
    		public Int32 ExpressCompanyID { get; set; }

    		public Int32 ExpressCompanyOldID { get; set; }

			[Required(ErrorMessage="Express Company Code is required")]
			[StringLength(50)]
    		public String ExpressCompanyCode { get; set; }

			[StringLength(100)]
    		public String CompanyName { get; set; }

			[StringLength(100)]
    		public String CompanyAllName { get; set; }

			[StringLength(50)]
    		public String SimpleSpell { get; set; }

			[StringLength(10)]
    		public String ProvinceID { get; set; }

			[StringLength(10)]
    		public String CityID { get; set; }

    		public Int32 ParentID { get; set; }

    		public Int32 CompanyFlag { get; set; }

			[StringLength(50)]
    		public String MainContacter { get; set; }

			[Required(ErrorMessage="Level Code is required")]
			[StringLength(50)]
    		public String LevelCode { get; set; }

    		public Int32 MaxOrderLimit { get; set; }

			[Required(ErrorMessage="Is Replacement is required")]
    		public Boolean IsReplacement { get; set; }

			[Required(ErrorMessage="Is P O S is required")]
    		public Boolean IsPOS { get; set; }

			[Required(ErrorMessage="Is Cod is required")]
    		public Boolean IsCod { get; set; }

    		public Boolean IsPDA { get; set; }

			[StringLength(50)]
    		public String Address { get; set; }

			[StringLength(100)]
			[DataType(DataType.EmailAddress)]
    		public String Email { get; set; }

			[StringLength(50)]
			[DataType(DataType.PhoneNumber)]
    		public String ContacterPhone { get; set; }

    		public Decimal Deposit { get; set; }

    		public Int32 Sorting { get; set; }

			[Required(ErrorMessage="Is Deleted is required")]
    		public Boolean IsDeleted { get; set; }

    		public Int32 CreatBy { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime CreatTime { get; set; }

    		public Int32 CreatStationID { get; set; }

    		public Int32 UpdateBy { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

    		public Int32 UpdateStationID { get; set; }

    		public Boolean IsOpen { get; set; }

    		public Int32 ExpressCompanyVjiaOldID { get; set; }

		}
	}
	
	[MetadataType(typeof(FMS_AudiRoleMetadata))]
	public partial class FMS_AudiRole
	{
		internal sealed class FMS_AudiRoleMetadata
		{
		
			[Required(ErrorMessage="Id is required")]
    		public Int32 Id { get; set; }

    		public Int32 FlowPointId { get; set; }

    		public Int32 RoleId { get; set; }

    		public Int32 CreateUser { get; set; }

    		public Int32 UpdateUser { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime CreateTime { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

    		public Boolean IsDelete { get; set; }

    		public Int32 CreateDeptId { get; set; }

    		public Int32 UpdateDeptId { get; set; }

		}
	}
	
	[MetadataType(typeof(FMS_BindFlowMetadata))]
	public partial class FMS_BindFlow
	{
		internal sealed class FMS_BindFlowMetadata
		{
		
			[Required(ErrorMessage="I D is required")]
    		public Int32 ID { get; set; }

			[Required(ErrorMessage="Flow is required")]
    		public Int32 FlowID { get; set; }

			[Required(ErrorMessage="Role is required")]
    		public Int32 RoleID { get; set; }

			[Required(ErrorMessage="Is Department is required")]
    		public Boolean IsDepartment { get; set; }

			[Required(ErrorMessage="Biz Order Type is required")]
    		public Int32 BizOrderType { get; set; }

    		public Boolean IsDelete { get; set; }

    		public Int32 CreateUser { get; set; }

    		public Int32 UpdateUser { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime CreateTime { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

		}
	}
	
	[MetadataType(typeof(FMS_BizOrderTypeMetadata))]
	public partial class FMS_BizOrderType
	{
		internal sealed class FMS_BizOrderTypeMetadata
		{
		
			[Required(ErrorMessage="Id is required")]
    		public Byte Id { get; set; }

			[StringLength(20)]
    		public String TypeName { get; set; }

			[StringLength(20)]
    		public String TypeCode { get; set; }

    		public Int32 PlatformId { get; set; }

    		public Int32 Direction { get; set; }

    		public Int32 CreateUser { get; set; }

    		public Int32 UpdateUser { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime CreateTime { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

    		public Boolean IsDelete { get; set; }

    		public Int32 CreateDeptId { get; set; }

    		public Int32 UpdateDeptId { get; set; }

		}
	}
	
	[MetadataType(typeof(FMS_FeeApplyMetadata))]
	public partial class FMS_FeeApply
	{
		internal sealed class FMS_FeeApplyMetadata
		{
		
			[Required(ErrorMessage="I D is required")]
    		public Int32 ID { get; set; }

    		public Int32 DoUserID { get; set; }

    		public Byte BizOrderTypeID { get; set; }

			[StringLength(100)]
    		public String Name { get; set; }

    		public Int32 Status { get; set; }

    		public Int32 CommitStatus { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime ApproveStartDate { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime ApproveStopDate { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime CommitDate { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime RefuseDate { get; set; }

			[StringLength(200)]
    		public String RefuseReason { get; set; }

			[StringLength(200)]
    		public String InvalidReason { get; set; }

			[StringLength(100)]
    		public String SaveFeeEmp { get; set; }

			[StringLength(100)]
    		public String SaveFeeEmpAccount { get; set; }

    		public Int32 AttachmentCount { get; set; }

    		public Int32 ProcessDep { get; set; }

    		public Int32 FeeDep { get; set; }

			[StringLength(20)]
    		public String PaymentAccount { get; set; }

			[StringLength(20)]
    		public String PaymentType { get; set; }

    		public Decimal Amount { get; set; }

    		public Int32 MatchOrderID { get; set; }

    		public Int32 CreateYear { get; set; }

    		public Int32 CreateMonth { get; set; }

    		public Int32 CreateDay { get; set; }

    		public Int32 EndYear { get; set; }

    		public Int32 EndMonth { get; set; }

    		public Int32 EndDay { get; set; }

			[StringLength(200)]
    		public String Description { get; set; }

    		public Int32 CreateUser { get; set; }

    		public Int32 UpdateUser { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime CreateTime { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

    		public Boolean IsDelete { get; set; }

    		public Int32 CreateDeptId { get; set; }

    		public Int32 UpdateDeptId { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime OverDate { get; set; }

    		public Int32 RelationType { get; set; }

		}
	}
	
	[MetadataType(typeof(FMS_FeeApplyAttachmentMetadata))]
	public partial class FMS_FeeApplyAttachment
	{
		internal sealed class FMS_FeeApplyAttachmentMetadata
		{
		
			[Required(ErrorMessage="I D is required")]
    		public Int32 ID { get; set; }

    		public Int32 PID { get; set; }

    		public Int32 BizType { get; set; }

			[StringLength(50)]
    		public String Name { get; set; }

			[StringLength(100)]
    		public String FilePath { get; set; }

			[StringLength(20)]
    		public String FileType { get; set; }

			[Required(ErrorMessage="Create User is required")]
    		public Int32 CreateUser { get; set; }

    		public Int32 UpdateUser { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime CreateTime { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

    		public Boolean IsDelete { get; set; }

		}
	}
	
	[MetadataType(typeof(FMS_FeeDetailMetadata))]
	public partial class FMS_FeeDetail
	{
		internal sealed class FMS_FeeDetailMetadata
		{
		
			[Required(ErrorMessage="I D is required")]
    		public Int32 ID { get; set; }

			[Required(ErrorMessage="P is required")]
    		public Int32 PID { get; set; }

    		public Int32 SID { get; set; }

    		public Decimal Fee { get; set; }

    		public Int32 Amount { get; set; }

    		public Decimal UnitPrice { get; set; }

			[StringLength(200)]
    		public String Description { get; set; }

    		public Int32 CreateUser { get; set; }

    		public Int32 UpdateUser { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime CreateTime { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

    		public Boolean IsDelete { get; set; }

    		public Boolean IsFeeCanEdit { get; set; }

    		public Boolean IsSubjectCanEdit { get; set; }

    		public Boolean IsCanDelete { get; set; }

    		public Boolean IsRelationData { get; set; }

		}
	}
	
	[MetadataType(typeof(FMS_FeeSubjectMetadata))]
	public partial class FMS_FeeSubject
	{
		internal sealed class FMS_FeeSubjectMetadata
		{
		
			[Required(ErrorMessage="I D is required")]
    		public Int32 ID { get; set; }

    		public Int32 PID { get; set; }

			[StringLength(50)]
    		public String Code { get; set; }

			[StringLength(50)]
    		public String Name { get; set; }

    		public Decimal WarnAmount { get; set; }

    		public Boolean IsForceWarn { get; set; }

    		public Decimal Budget { get; set; }

			[StringLength(10)]
    		public String MeasureUnit { get; set; }

    		public Boolean IsSecret { get; set; }

    		public Boolean IsLeaf { get; set; }

    		public Boolean IsAssistAccounts { get; set; }

			[StringLength(200)]
    		public String Description { get; set; }

    		public Int32 CreateUser { get; set; }

    		public Int32 UpdateUser { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime CreateTime { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

    		public Boolean IsDelete { get; set; }

    		public Int32 CreateDeptId { get; set; }

    		public Int32 UpdateDeptId { get; set; }

    		public Int32 StatAccounting { get; set; }

    		public Int32 SubjectLevel { get; set; }

    		public Boolean IsMonthLimit { get; set; }

		}
	}
	
	[MetadataType(typeof(FMS_FlowInfoMetadata))]
	public partial class FMS_FlowInfo
	{
		internal sealed class FMS_FlowInfoMetadata
		{
		
			[Required(ErrorMessage="Flow is required")]
    		public Int32 FlowId { get; set; }

			[StringLength(50)]
    		public String Flowname { get; set; }

			[StringLength(50)]
    		public String FlowDesc { get; set; }

    		public Int32 FlowStatus { get; set; }

    		public Byte BizOrderTypeId { get; set; }

    		public Int32 CreateUser { get; set; }

    		public Int32 UpdateUser { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime CreateTime { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

    		public Boolean IsDelete { get; set; }

    		public Int32 CreateDeptId { get; set; }

    		public Int32 UpdateDeptId { get; set; }

		}
	}
	
	[MetadataType(typeof(FMS_FlowOperatorLogMetadata))]
	public partial class FMS_FlowOperatorLog
	{
		internal sealed class FMS_FlowOperatorLogMetadata
		{
		
			[Required(ErrorMessage="Log is required")]
    		public Int64 LogID { get; set; }

    		public Int64 BizOrderNo { get; set; }

    		public Byte BizOrderType { get; set; }

    		public Int32 FlowId { get; set; }

    		public Boolean CreateSign { get; set; }

			[StringLength(200)]
    		public String Operation { get; set; }

			[StringLength(200)]
    		public String Result { get; set; }

    		public Int32 Status { get; set; }

    		public Int32 OldPoint { get; set; }

    		public Int32 NewPoint { get; set; }

    		public Int32 Operator { get; set; }

    		public Int32 OperatDept { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime OperateTime { get; set; }

			[StringLength(100)]
    		public String OperatorName { get; set; }

			[StringLength(500)]
    		public String AudiDesc { get; set; }

		}
	}
	
	[MetadataType(typeof(FMS_FlowPointInfoMetadata))]
	public partial class FMS_FlowPointInfo
	{
		internal sealed class FMS_FlowPointInfoMetadata
		{
		
			[Required(ErrorMessage="Id is required")]
    		public Int32 Id { get; set; }

    		public Int32 FlowId { get; set; }

			[StringLength(50)]
    		public String PointName { get; set; }

    		public Int32 PointType { get; set; }

			[StringLength(20)]
    		public String PointDesc { get; set; }

			[StringLength(20)]
    		public String SignName { get; set; }

    		public Int32 LogicPointId { get; set; }

    		public Int32 PointOrder { get; set; }

    		public Boolean CreateSign { get; set; }

    		public Boolean CanEdit { get; set; }

    		public Boolean CanEnd { get; set; }

    		public Boolean CanUp { get; set; }

    		public Boolean CanBack { get; set; }

    		public Boolean CanHold { get; set; }

    		public Boolean CanCrossBack { get; set; }

    		public Boolean CanCrossAudi { get; set; }

    		public Boolean Manual_dispatch { get; set; }

    		public Int64 ResponsTime { get; set; }

    		public Boolean MessageNotify { get; set; }

    		public Boolean MailNotify { get; set; }

    		public Boolean WindowNotify { get; set; }

    		public Int32 UpTo { get; set; }

    		public Int32 BackTo { get; set; }

			[StringLength(200)]
    		public String RoleList { get; set; }

			[StringLength(200)]
    		public String AudiPeople { get; set; }

    		public Int32 CreateUser { get; set; }

    		public Int32 UpdateUser { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime CreateTime { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

    		public Boolean IsDelete { get; set; }

    		public Int32 CreateDeptId { get; set; }

    		public Int32 UpdateDeptId { get; set; }

		}
	}
	
	[MetadataType(typeof(FMS_FlowProcessMetadata))]
	public partial class FMS_FlowProcess
	{
		internal sealed class FMS_FlowProcessMetadata
		{
		
			[Required(ErrorMessage="Id is required")]
    		public Int32 Id { get; set; }

    		public Int32 BizOrderId { get; set; }

    		public Byte BizOrderType { get; set; }

    		public Int32 FlowId { get; set; }

    		public Int32 FlowPointId { get; set; }

    		public Int32 Status { get; set; }

    		public Boolean IsCross { get; set; }

    		public Int32 BeginPoint { get; set; }

			[StringLength(20)]
    		public String Operator { get; set; }

			[StringLength(500)]
    		public String OperateDesc { get; set; }

			[StringLength(200)]
    		public String AudiPeople { get; set; }

			[StringLength(200)]
    		public String RoleList { get; set; }

    		public Int32 CreateUser { get; set; }

    		public Int32 UpdateUser { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime CreateTime { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

    		public Boolean IsDelete { get; set; }

    		public Int32 CreateDeptId { get; set; }

    		public Int32 UpdateDeptId { get; set; }

		}
	}
	
	[MetadataType(typeof(FMS_FormSubjectMetadata))]
	public partial class FMS_FormSubject
	{
		internal sealed class FMS_FormSubjectMetadata
		{
		
			[Required(ErrorMessage="I D is required")]
    		public Int32 ID { get; set; }

			[Required(ErrorMessage="Order Type is required")]
    		public Int32 OrderTypeID { get; set; }

			[Required(ErrorMessage="Subject is required")]
    		public Int32 SubjectID { get; set; }

		}
	}
	
	[MetadataType(typeof(FMS_FormTemplateMetadata))]
	public partial class FMS_FormTemplate
	{
		internal sealed class FMS_FormTemplateMetadata
		{
		
			[Required(ErrorMessage="I D is required")]
    		public Int32 ID { get; set; }

			[Required(ErrorMessage="Name is required")]
			[StringLength(100)]
    		public String Name { get; set; }

			[Required(ErrorMessage="File Path is required")]
			[StringLength(200)]
    		public String FilePath { get; set; }

			[Required(ErrorMessage="Biz Order Type is required")]
    		public Int32 BizOrderType { get; set; }

    		public Int32 CreateUser { get; set; }

    		public Int32 UpdateUser { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime CreateTime { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

    		public Boolean IsDelete { get; set; }

    		public Int32 CreateDeptId { get; set; }

    		public Int32 UpdateDeptId { get; set; }

		}
	}
	
	[MetadataType(typeof(FMS_LogicPointMetadata))]
	public partial class FMS_LogicPoint
	{
		internal sealed class FMS_LogicPointMetadata
		{
		
			[Required(ErrorMessage="Id is required")]
    		public Int32 Id { get; set; }

			[StringLength(100)]
    		public String LogicPointName { get; set; }

    		public Int32 BizOrderType { get; set; }

			[StringLength(50)]
    		public String ObjectId { get; set; }

    		public Int32 SystemId { get; set; }

		}
	}
	
	[MetadataType(typeof(FMS_MerchantDeliverFeeMetadata))]
	public partial class FMS_MerchantDeliverFee
	{
		internal sealed class FMS_MerchantDeliverFeeMetadata
		{
		
			[Required(ErrorMessage="I D is required")]
    		public Int32 ID { get; set; }

			[Required(ErrorMessage="Merchant is required")]
    		public Int32 MerchantID { get; set; }

    		public Int32 PaymentType { get; set; }

    		public Int32 PaymentPeriod { get; set; }

    		public Int32 DeliverFeeType { get; set; }

    		public Int32 DeliverFeePeriod { get; set; }

			[StringLength(50)]
    		public String FeeFactors { get; set; }

    		public Boolean IsUniformedFee { get; set; }

    		public Decimal BasicDeliverFee { get; set; }

    		public Int32 FormulaID { get; set; }

			[StringLength(100)]
    		public String FormulaParamters { get; set; }

    		public Int32 UpdateBy { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

			[StringLength(20)]
    		public String UpdateCode { get; set; }

    		public Int32 AuditBy { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime AuditTime { get; set; }

			[StringLength(20)]
    		public String AuditCode { get; set; }

    		public Int32 AuditResult { get; set; }

    		public Int32 Status { get; set; }

    		public EntityCollection<MerchantBaseInfo> MerchantBaseInfo { get; set; }

		}
	}
	
	[MetadataType(typeof(FMS_MerchantDeliverFeeHistoryMetadata))]
	public partial class FMS_MerchantDeliverFeeHistory
	{
		internal sealed class FMS_MerchantDeliverFeeHistoryMetadata
		{
		
			[Required(ErrorMessage="I D is required")]
    		public Int32 ID { get; set; }

			[Required(ErrorMessage="Merchant is required")]
    		public Int32 MerchantID { get; set; }

    		public Int32 PaymentType { get; set; }

    		public Int32 PaymentPeriod { get; set; }

    		public Int32 DeliverFeeType { get; set; }

    		public Int32 DeliverFeePeriod { get; set; }

			[StringLength(50)]
    		public String FeeFactors { get; set; }

    		public Boolean IsUniformedFee { get; set; }

    		public Decimal BasicDeliverFee { get; set; }

    		public Int32 FormulaID { get; set; }

			[StringLength(100)]
    		public String FormulaParamters { get; set; }

    		public Int32 UpdateBy { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

			[StringLength(20)]
    		public String UpdateCode { get; set; }

    		public Int32 AuditBy { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime AuditTime { get; set; }

			[StringLength(20)]
    		public String AuditCode { get; set; }

    		public Int32 AuditResult { get; set; }

    		public Int32 Status { get; set; }

			[StringLength(20)]
    		public String UpdateBatchNo { get; set; }

    		public EntityCollection<MerchantBaseInfo> MerchantBaseInfo { get; set; }

		}
	}
	
	[MetadataType(typeof(FMS_OperateLogMetadata))]
	public partial class FMS_OperateLog
	{
		internal sealed class FMS_OperateLogMetadata
		{
		
			[Required(ErrorMessage="Operate Log is required")]
    		public Int64 OperateLogID { get; set; }

			[Required(ErrorMessage="Biz Order No is required")]
    		public Int64 BizOrderNo { get; set; }

    		public Int32 LogType { get; set; }

			[Required(ErrorMessage="Operation is required")]
			[StringLength(100)]
    		public String Operation { get; set; }

			[Required(ErrorMessage="Operator is required")]
			[StringLength(20)]
    		public String Operator { get; set; }

    		public Int32 OperatorId { get; set; }

			[Required(ErrorMessage="Operator Dept is required")]
    		public Int32 OperatorDept { get; set; }

			[Required(ErrorMessage="Operate Time is required")]
			[DataType(DataType.DateTime)]
    		public DateTime OperateTime { get; set; }

			[Required(ErrorMessage="Reasult is required")]
			[StringLength(400)]
    		public String Reasult { get; set; }

			[Required(ErrorMessage="Status is required")]
    		public Int32 Status { get; set; }

    		public Boolean IsSyn { get; set; }

		}
	}
	
	[MetadataType(typeof(FMS_PreeFeeMetadata))]
	public partial class FMS_PreeFee
	{
		internal sealed class FMS_PreeFeeMetadata
		{
		
			[Required(ErrorMessage="I D is required")]
    		public Int32 ID { get; set; }

    		public Int32 UserID { get; set; }

			[StringLength(100)]
    		public String SubjectName { get; set; }

			[StringLength(100)]
    		public String DepartmentName { get; set; }

    		public Decimal FeeAmount { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime StopDate { get; set; }

			[StringLength(200)]
    		public String Description { get; set; }

    		public Int32 CreateUser { get; set; }

    		public Int32 UpdateUser { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime CreateTime { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

    		public Boolean IsDelete { get; set; }

    		public Int32 UpdateDeptId { get; set; }

    		public Int32 CreateDeptId { get; set; }

		}
	}
	
	[MetadataType(typeof(FMS_PromptOrderMetadata))]
	public partial class FMS_PromptOrder
	{
		internal sealed class FMS_PromptOrderMetadata
		{
		
			[Required(ErrorMessage="Id is required")]
    		public Int32 Id { get; set; }

    		public Int32 ToUserId { get; set; }

    		public Int32 ToDeptId { get; set; }

			[StringLength(100)]
    		public String ToDeptName { get; set; }

    		public Int32 SubjectId { get; set; }

			[StringLength(500)]
    		public String Content { get; set; }

    		public Int32 CreateUser { get; set; }

			[StringLength(50)]
    		public String CreateUserName { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime CreateTime { get; set; }

			[StringLength(100)]
    		public String CreateDeptName { get; set; }

    		public Int32 CreateDeptId { get; set; }

    		public Int32 Status { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime ReadTime { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime PlanPayTime { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime AskPayTime { get; set; }

		}
	}
	
	[MetadataType(typeof(FMS_StationDeliverFeeMetadata))]
	public partial class FMS_StationDeliverFee
	{
		internal sealed class FMS_StationDeliverFeeMetadata
		{
		
			[Required(ErrorMessage="I D is required")]
    		public Int32 ID { get; set; }

			[Required(ErrorMessage="Merchant is required")]
    		public Int32 MerchantID { get; set; }

			[Required(ErrorMessage="Station is required")]
    		public Int32 StationID { get; set; }

    		public Decimal BasicDeliverFee { get; set; }

    		public Int32 UpdateBy { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

			[StringLength(20)]
    		public String UpdateCode { get; set; }

    		public Int32 AuditBy { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime AuditTime { get; set; }

			[StringLength(20)]
    		public String AuditCode { get; set; }

    		public Int32 AuditResult { get; set; }

    		public Int32 Status { get; set; }

    		public EntityCollection<MerchantBaseInfo> MerchantBaseInfo { get; set; }

		}
	}
	
	[MetadataType(typeof(FMS_StationDeliverFeeHistoryMetadata))]
	public partial class FMS_StationDeliverFeeHistory
	{
		internal sealed class FMS_StationDeliverFeeHistoryMetadata
		{
		
			[Required(ErrorMessage="I D is required")]
    		public Int32 ID { get; set; }

			[Required(ErrorMessage="Merchant is required")]
    		public Int32 MerchantID { get; set; }

			[Required(ErrorMessage="Station is required")]
    		public Int32 StationID { get; set; }

    		public Decimal BasicDeliverFee { get; set; }

    		public Int32 UpdateBy { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

			[StringLength(20)]
    		public String UpdateCode { get; set; }

    		public Int32 AuditBy { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime AuditTime { get; set; }

			[StringLength(20)]
    		public String AuditCode { get; set; }

    		public Int32 AuditResult { get; set; }

    		public Int32 Status { get; set; }

			[StringLength(20)]
    		public String UpdateBatchNo { get; set; }

    		public EntityCollection<MerchantBaseInfo> MerchantBaseInfo { get; set; }

		}
	}
	
	[MetadataType(typeof(FMS_SubjectTemplateMetadata))]
	public partial class FMS_SubjectTemplate
	{
		internal sealed class FMS_SubjectTemplateMetadata
		{
		
			[Required(ErrorMessage="I D is required")]
    		public Int32 ID { get; set; }

			[Required(ErrorMessage="Name is required")]
			[StringLength(50)]
    		public String Name { get; set; }

			[Required(ErrorMessage="Order Type is required")]
    		public Int32 OrderTypeID { get; set; }

			[StringLength(200)]
    		public String Description { get; set; }

    		public Int32 CreateUser { get; set; }

    		public Int32 UpdateUser { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime CreateTime { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

    		public Boolean IsDelete { get; set; }

		}
	}
	
	[MetadataType(typeof(FMS_SubjectTemplateItemMetadata))]
	public partial class FMS_SubjectTemplateItem
	{
		internal sealed class FMS_SubjectTemplateItemMetadata
		{
		
			[Required(ErrorMessage="I D is required")]
    		public Int32 ID { get; set; }

			[Required(ErrorMessage="S is required")]
    		public Int32 SID { get; set; }

			[Required(ErrorMessage="P is required")]
    		public Int32 PID { get; set; }

    		public Decimal Fee { get; set; }

			[StringLength(100)]
    		public String Description { get; set; }

    		public Int32 CreateUser { get; set; }

    		public Int32 UpdateUser { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime CreateTime { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

    		public Boolean IsDelete { get; set; }

    		public Int32 CreateDeptId { get; set; }

    		public Int32 UpdateDeptId { get; set; }

    		public Double UnitPrice { get; set; }

    		public Int32 Amount { get; set; }

		}
	}
	
	[MetadataType(typeof(FMS_UserArrearsMetadata))]
	public partial class FMS_UserArrears
	{
		internal sealed class FMS_UserArrearsMetadata
		{
		
			[Required(ErrorMessage="I D is required")]
    		public Int32 ID { get; set; }

    		public Int32 UserID { get; set; }

    		public Int32 DepartmentID { get; set; }

    		public Int32 SubjectID { get; set; }

    		public Decimal FeeAmount { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime StopDate { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime PrintDate { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime UpdateDate { get; set; }

    		public Boolean IsDelete { get; set; }

		}
	}
	
	[MetadataType(typeof(FormulaMetadata))]
	public partial class Formula
	{
		internal sealed class FormulaMetadata
		{
		
			[Required(ErrorMessage="I D is required")]
    		public Int32 ID { get; set; }

			[Required(ErrorMessage="Formula Name is required")]
			[StringLength(50)]
    		public String FormulaName { get; set; }

			[StringLength(500)]
    		public String FormulaTemplate { get; set; }

    		public Boolean IsDeleted { get; set; }

    		public Int32 CreateBy { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime CreateTime { get; set; }

    		public Int32 CreateStationID { get; set; }

    		public Int32 UpdateBy { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

    		public Int32 UpdateStationID { get; set; }

		}
	}
	
	[MetadataType(typeof(GPSOrderMetadata))]
	public partial class GPSOrder
	{
		internal sealed class GPSOrderMetadata
		{
		
			[Required(ErrorMessage="orderno is required")]
			[StringLength(32)]
    		public String orderno { get; set; }

			[StringLength(20)]
    		public String city { get; set; }

			[StringLength(32)]
    		public String warehouse { get; set; }

			[StringLength(50)]
    		public String stations { get; set; }

    		public Int32 cid { get; set; }

			[StringLength(120)]
    		public String address { get; set; }

    		public Double lng { get; set; }

    		public Double lat { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime createtime { get; set; }

			[StringLength(16)]
    		public String gpsid { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime time { get; set; }

			[StringLength(16)]
    		public String truckno { get; set; }

    		public Boolean IsSyn { get; set; }

		}
	}
	
	[MetadataType(typeof(GPSOrderStatuMetadata))]
	public partial class GPSOrderStatu
	{
		internal sealed class GPSOrderStatuMetadata
		{
		
			[Required(ErrorMessage="id is required")]
    		public Int32 id { get; set; }

			[StringLength(32)]
    		public String orderno { get; set; }

    		public Int32 status { get; set; }

			[StringLength(50)]
    		public String statestr { get; set; }

			[StringLength(20)]
    		public String distributor { get; set; }

			[StringLength(20)]
			[DataType(DataType.PhoneNumber)]
    		public String distphone { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime time { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime createtime { get; set; }

			[StringLength(16)]
    		public String gpsid { get; set; }

			[StringLength(16)]
    		public String truckno { get; set; }

    		public Boolean isSyn { get; set; }

			[StringLength(10)]
    		public String station { get; set; }

		}
	}
	
	[MetadataType(typeof(InBoundMetadata))]
	public partial class InBound
	{
		internal sealed class InBoundMetadata
		{
		
			[Required(ErrorMessage="In Bound is required")]
    		public Int64 InBoundId { get; set; }

    		public Int64 WaybillNO { get; set; }

			[StringLength(20)]
    		public String CustomerBatchNO { get; set; }

    		public Int64 InBoundNO { get; set; }

    		public Int32 FromStation { get; set; }

    		public Int32 Operator { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime IntoTime { get; set; }

    		public Int32 IntoStation { get; set; }

			[Required(ErrorMessage="Into Station Type is required")]
			[StringLength(20)]
    		public String IntoStationType { get; set; }

    		public Int32 DeliveryMan { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime DeliveryTime { get; set; }

    		public Int32 DeliveryDriver { get; set; }

			[StringLength(20)]
    		public String DeliveryCarNO { get; set; }

			[Required(ErrorMessage="Is Print is required")]
    		public Boolean IsPrint { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime PrintTime { get; set; }

			[Required(ErrorMessage="Creat By is required")]
    		public Int32 CreatBy { get; set; }

			[Required(ErrorMessage="Creat Station is required")]
    		public Int32 CreatStation { get; set; }

			[Required(ErrorMessage="Creat Time is required")]
			[DataType(DataType.DateTime)]
    		public DateTime CreatTime { get; set; }

			[Required(ErrorMessage="Update By is required")]
    		public Int32 UpdateBy { get; set; }

			[Required(ErrorMessage="Update Station is required")]
    		public Int32 UpdateStation { get; set; }

			[Required(ErrorMessage="Update Time is required")]
			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

			[Required(ErrorMessage="Is Delete is required")]
    		public Boolean IsDelete { get; set; }

    		public Int32 ToStation { get; set; }

		}
	}
	
	[MetadataType(typeof(InBoundDetailMetadata))]
	public partial class InBoundDetail
	{
		internal sealed class InBoundDetailMetadata
		{
		
			[Required(ErrorMessage="In Bound Dtl is required")]
    		public Int64 InBoundDtlID { get; set; }

    		public Int64 InBoundNO { get; set; }

    		public Int64 WayBillNO { get; set; }

			[StringLength(20)]
    		public String CustomOrderNO { get; set; }

			[StringLength(50)]
    		public String GoodName { get; set; }

    		public Decimal GoodCount { get; set; }

    		public Decimal GoodsWeight { get; set; }

			[Required(ErrorMessage="Creat By is required")]
    		public Int32 CreatBy { get; set; }

			[Required(ErrorMessage="Creat Station is required")]
    		public Int32 CreatStation { get; set; }

			[Required(ErrorMessage="Creat Time is required")]
			[DataType(DataType.DateTime)]
    		public DateTime CreatTime { get; set; }

			[Required(ErrorMessage="Update By is required")]
    		public Int32 UpdateBy { get; set; }

			[Required(ErrorMessage="Update Station is required")]
    		public Int32 UpdateStation { get; set; }

			[Required(ErrorMessage="Update Time is required")]
			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

			[Required(ErrorMessage="Is Delete is required")]
    		public Boolean IsDelete { get; set; }

		}
	}
	
	[MetadataType(typeof(MenuMetadata))]
	public partial class Menu
	{
		internal sealed class MenuMetadata
		{
		
			[Required(ErrorMessage="Menu is required")]
    		public Int32 MenuID { get; set; }

			[Required(ErrorMessage="Menu Name is required")]
			[StringLength(50)]
    		public String MenuName { get; set; }

    		public Int32 ParentID { get; set; }

			[StringLength(100)]
			[DataType(DataType.Url)]
    		public String URL { get; set; }

			[StringLength(50)]
			[DataType(DataType.Url)]
    		public String ImgURL { get; set; }

    		public Int32 MenuGroup { get; set; }

    		public Int32 MenuLevel { get; set; }

    		public Int32 Sorting { get; set; }

    		public Int32 MainSortBy { get; set; }

			[StringLength(50)]
    		public String MenuComment { get; set; }

			[Required(ErrorMessage="Is Delete is required")]
    		public Boolean IsDelete { get; set; }

			[Required(ErrorMessage="Creat By is required")]
    		public Int32 CreatBy { get; set; }

			[Required(ErrorMessage="Creat Time is required")]
			[DataType(DataType.DateTime)]
    		public DateTime CreatTime { get; set; }

			[Required(ErrorMessage="Creat Station is required")]
    		public Int32 CreatStation { get; set; }

			[Required(ErrorMessage="Update By is required")]
    		public Int32 UpdateBy { get; set; }

			[Required(ErrorMessage="Update Time is required")]
			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

			[Required(ErrorMessage="Update Station is required")]
    		public Int32 UpdateStation { get; set; }

    		public Int32 SystemID { get; set; }

		}
	}
	
	[MetadataType(typeof(MerchantBaseInfoMetadata))]
	public partial class MerchantBaseInfo
	{
		internal sealed class MerchantBaseInfoMetadata
		{
		
			[Required(ErrorMessage="I D is required")]
    		public Int32 ID { get; set; }

			[Required(ErrorMessage="Province is required")]
			[StringLength(10)]
    		public String ProvinceID { get; set; }

			[Required(ErrorMessage="City is required")]
			[StringLength(10)]
    		public String CityID { get; set; }

			[StringLength(100)]
    		public String MerchantName { get; set; }

			[Required(ErrorMessage="Merchant Code is required")]
			[StringLength(50)]
    		public String MerchantCode { get; set; }

			[StringLength(100)]
    		public String MerchantFullName { get; set; }

			[StringLength(50)]
    		public String SimpleSpell { get; set; }

			[StringLength(50)]
    		public String Address { get; set; }

			[StringLength(50)]
    		public String Contacter { get; set; }

			[StringLength(50)]
			[DataType(DataType.PhoneNumber)]
    		public String ContacterPhone { get; set; }

			[StringLength(50)]
			[DataType(DataType.PhoneNumber)]
    		public String Telephone { get; set; }

			[StringLength(100)]
			[DataType(DataType.EmailAddress)]
    		public String Email { get; set; }

    		public Int32 OrderPeak { get; set; }

    		public Int32 PickMode { get; set; }

			[Required(ErrorMessage="Is Deleted is required")]
    		public Boolean IsDeleted { get; set; }

    		public Int32 CreatBy { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime CreatTime { get; set; }

    		public Int32 CreateStationID { get; set; }

    		public Int32 UpdateBy { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

    		public Int32 UpdateStationID { get; set; }

    		public EntityCollection<FMS_MerchantDeliverFee> FMS_MerchantDeliverFee { get; set; }

    		public EntityCollection<FMS_MerchantDeliverFeeHistory> FMS_MerchantDeliverFeeHistory { get; set; }

    		public EntityCollection<FMS_StationDeliverFee> FMS_StationDeliverFee { get; set; }

    		public EntityCollection<FMS_StationDeliverFeeHistory> FMS_StationDeliverFeeHistory { get; set; }

    		public EntityCollection<UploadOrderRecord> UploadOrderRecords { get; set; }

		}
	}
	
	[MetadataType(typeof(MyLogMetadata))]
	public partial class MyLog
	{
		internal sealed class MyLogMetadata
		{
		
			[Required(ErrorMessage="Id is required")]
    		public Int32 Id { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime Date { get; set; }

			[StringLength(225)]
    		public String Thread { get; set; }

			[StringLength(50)]
    		public String Level { get; set; }

			[StringLength(225)]
    		public String Logger { get; set; }

			[StringLength(2000)]
    		public String Message { get; set; }

		}
	}
	
	[MetadataType(typeof(NoGenerateMetadata))]
	public partial class NoGenerate
	{
		internal sealed class NoGenerateMetadata
		{
		
			[Required(ErrorMessage="Id is required")]
    		public Int64 Id { get; set; }

			[Required(ErrorMessage="Date is required")]
			[StringLength(8)]
    		public String Date { get; set; }

			[Required(ErrorMessage="No Type is required")]
    		public Int32 NoType { get; set; }

			[Required(ErrorMessage="Latest No is required")]
    		public Int32 LatestNo { get; set; }

			[StringLength(50)]
    		public String Remark { get; set; }

		}
	}
	
	[MetadataType(typeof(NoticeMetadata))]
	public partial class Notice
	{
		internal sealed class NoticeMetadata
		{
		
			[Required(ErrorMessage="id is required")]
    		public Int32 id { get; set; }

			[StringLength(20)]
    		public String Title { get; set; }

    		public String NoitceContent { get; set; }

			[StringLength(10)]
    		public String Signature { get; set; }

    		public Int32 CreateBy { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime CreateTime { get; set; }

    		public Int32 UpdateBy { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

    		public Boolean IsDelete { get; set; }

		}
	}
	
	[MetadataType(typeof(OperateLogMetadata))]
	public partial class OperateLog
	{
		internal sealed class OperateLogMetadata
		{
		
			[Required(ErrorMessage="Operate Log is required")]
    		public Int64 OperateLogID { get; set; }

			[Required(ErrorMessage="Waybill N O is required")]
    		public Int64 WaybillNO { get; set; }

    		public Int32 LogType { get; set; }

			[Required(ErrorMessage="Operation is required")]
			[StringLength(100)]
    		public String Operation { get; set; }

			[Required(ErrorMessage="Operator is required")]
			[StringLength(20)]
    		public String Operator { get; set; }

			[Required(ErrorMessage="Operator Station is required")]
    		public Int32 OperatorStation { get; set; }

			[Required(ErrorMessage="Operate Time is required")]
			[DataType(DataType.DateTime)]
    		public DateTime OperateTime { get; set; }

			[Required(ErrorMessage="Reasult is required")]
			[StringLength(400)]
    		public String Reasult { get; set; }

			[Required(ErrorMessage="Status is required")]
    		public Int32 Status { get; set; }

    		public Boolean IsSyn { get; set; }

			[StringLength(20)]
    		public String OldDeliverMan { get; set; }

		}
	}
	
	[MetadataType(typeof(OutBoundMetadata))]
	public partial class OutBound
	{
		internal sealed class OutBoundMetadata
		{
		
			[Required(ErrorMessage="Out Bound is required")]
    		public Int64 OutBoundID { get; set; }

    		public Int64 OutBoundNO { get; set; }

    		public Int64 WaybillNO { get; set; }

			[StringLength(20)]
    		public String BatchNO { get; set; }

    		public Int32 TransferType { get; set; }

    		public Int32 ToStation { get; set; }

    		public Int32 ToStationPrincipal { get; set; }

    		public Int32 Operator { get; set; }

			[Required(ErrorMessage="Out Station Type is required")]
			[StringLength(20)]
    		public String OutStationType { get; set; }

			[Required(ErrorMessage="Is Print is required")]
    		public Boolean IsPrint { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime PrintTime { get; set; }

    		public Int32 OutBoundStation { get; set; }

    		public Int32 DeliveryMan { get; set; }

    		public Int32 DeliveryDriver { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime OutBoundTime { get; set; }

			[Required(ErrorMessage="Creat By is required")]
    		public Int32 CreatBy { get; set; }

			[Required(ErrorMessage="Creat Station is required")]
    		public Int32 CreatStation { get; set; }

			[Required(ErrorMessage="Creat Time is required")]
			[DataType(DataType.DateTime)]
    		public DateTime CreatTime { get; set; }

			[Required(ErrorMessage="Update By is required")]
    		public Int32 UpdateBy { get; set; }

			[Required(ErrorMessage="Update Station is required")]
    		public Int32 UpdateStation { get; set; }

			[Required(ErrorMessage="Update Time is required")]
			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

			[Required(ErrorMessage="Is Delete is required")]
    		public Boolean IsDelete { get; set; }

		}
	}
	
	[MetadataType(typeof(OutBoundDetailMetadata))]
	public partial class OutBoundDetail
	{
		internal sealed class OutBoundDetailMetadata
		{
		
			[Required(ErrorMessage="Out Bound Dtl is required")]
    		public Int64 OutBoundDtlID { get; set; }

    		public Int64 OutBoundNo { get; set; }

    		public Int64 WayBillNO { get; set; }

			[StringLength(20)]
    		public String CustomOrderNO { get; set; }

    		public Int32 GoodNO { get; set; }

    		public Decimal GoodWeight { get; set; }

			[StringLength(50)]
    		public String GoodName { get; set; }

			[Required(ErrorMessage="Creat By is required")]
    		public Int32 CreatBy { get; set; }

			[Required(ErrorMessage="Creat Station is required")]
    		public Int32 CreatStation { get; set; }

			[Required(ErrorMessage="Creat Time is required")]
			[DataType(DataType.DateTime)]
    		public DateTime CreatTime { get; set; }

			[Required(ErrorMessage="Update By is required")]
    		public Int32 UpdateBy { get; set; }

			[Required(ErrorMessage="Update Station is required")]
    		public Int32 UpdateStation { get; set; }

			[Required(ErrorMessage="Update Time is required")]
			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

			[Required(ErrorMessage="Is Delete is required")]
    		public Boolean IsDelete { get; set; }

		}
	}
	
	[MetadataType(typeof(PackageMetadata))]
	public partial class Package
	{
		internal sealed class PackageMetadata
		{
		
			[Required(ErrorMessage="Package is required")]
    		public Int64 PackageID { get; set; }

			[Required(ErrorMessage="Package N O is required")]
			[StringLength(20)]
    		public String PackageNO { get; set; }

    		public Decimal Amount { get; set; }

    		public Int32 PackageNum { get; set; }

    		public Decimal Weight { get; set; }

    		public Int32 Operator { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime OperateTime { get; set; }

    		public Int32 OperateStation { get; set; }

    		public Int32 ReceiveStation { get; set; }

    		public Int32 ReceiveBy { get; set; }

    		public Int32 Driver { get; set; }

			[StringLength(10)]
    		public String CarNum { get; set; }

			[Required(ErrorMessage="Is Delete is required")]
    		public Boolean IsDelete { get; set; }

			[Required(ErrorMessage="Creat By is required")]
    		public Int32 CreatBy { get; set; }

			[Required(ErrorMessage="Creat Station is required")]
    		public Int32 CreatStation { get; set; }

			[Required(ErrorMessage="Creat Time is required")]
			[DataType(DataType.DateTime)]
    		public DateTime CreatTime { get; set; }

			[Required(ErrorMessage="Update By is required")]
    		public Int32 UpdateBy { get; set; }

			[Required(ErrorMessage="Update Station is required")]
    		public Int32 UpdateStation { get; set; }

			[Required(ErrorMessage="Update Time is required")]
			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

			[Required(ErrorMessage="Is Delete1 is required")]
    		public Boolean IsDelete1 { get; set; }

		}
	}
	
	[MetadataType(typeof(PackageDetailMetadata))]
	public partial class PackageDetail
	{
		internal sealed class PackageDetailMetadata
		{
		
			[Required(ErrorMessage="Package Detail is required")]
    		public Int64 PackageDetailID { get; set; }

			[Required(ErrorMessage="Package No is required")]
			[StringLength(20)]
    		public String PackageNo { get; set; }

			[Required(ErrorMessage="Waybill No is required")]
    		public Int64 WaybillNo { get; set; }

			[StringLength(20)]
    		public String CustomerOrder { get; set; }

			[Required(ErrorMessage="Creat By is required")]
    		public Int32 CreatBy { get; set; }

			[Required(ErrorMessage="Creat Station is required")]
    		public Int32 CreatStation { get; set; }

			[Required(ErrorMessage="Creat Time is required")]
			[DataType(DataType.DateTime)]
    		public DateTime CreatTime { get; set; }

			[Required(ErrorMessage="Update By is required")]
    		public Int32 UpdateBy { get; set; }

			[Required(ErrorMessage="Update Station is required")]
    		public Int32 UpdateStation { get; set; }

			[Required(ErrorMessage="Update Time is required")]
			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

			[Required(ErrorMessage="Is Delete is required")]
    		public Boolean IsDelete { get; set; }

		}
	}
	
	[MetadataType(typeof(PaymentMetadata))]
	public partial class Payment
	{
		internal sealed class PaymentMetadata
		{
		
			[Required(ErrorMessage="Payment Type is required")]
			[StringLength(2)]
    		public String PaymentTypeID { get; set; }

			[Required(ErrorMessage="Payment Type is required")]
			[StringLength(50)]
    		public String PaymentType { get; set; }

			[StringLength(500)]
    		public String Intro { get; set; }

			[Required(ErrorMessage="Is Net Pay is required")]
    		public Boolean IsNetPay { get; set; }

			[Required(ErrorMessage="Is For Customer is required")]
    		public Boolean IsForCustomer { get; set; }

			[Required(ErrorMessage="Can Return is required")]
    		public Boolean CanReturn { get; set; }

			[Required(ErrorMessage="Return Order is required")]
    		public Int32 ReturnOrder { get; set; }

    		public Boolean IsDelete { get; set; }

		}
	}
	
	[MetadataType(typeof(PMS_PermissionRoleMetadata))]
	public partial class PMS_PermissionRole
	{
		internal sealed class PMS_PermissionRoleMetadata
		{
		
			[Required(ErrorMessage="Role is required")]
    		public Int32 RoleId { get; set; }

			[StringLength(50)]
    		public String RoleName { get; set; }

			[StringLength(50)]
    		public String SubSysKey { get; set; }

    		public Boolean IsDelete { get; set; }

    		public Int32 CreateBy { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime CreateTime { get; set; }

    		public Int32 UpdateBy { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

		}
	}
	
	[MetadataType(typeof(PMS_PermissionRuleMetadata))]
	public partial class PMS_PermissionRule
	{
		internal sealed class PMS_PermissionRuleMetadata
		{
		
			[Required(ErrorMessage="Rule is required")]
    		public Int32 RuleId { get; set; }

			[StringLength(50)]
    		public String RuleName { get; set; }

			[StringLength(200)]
    		public String RuleKey { get; set; }

			[StringLength(200)]
    		public String RuleValue { get; set; }

			[StringLength(50)]
    		public String RuleTypeKey { get; set; }

    		public Int32 PermissionType { get; set; }

			[StringLength(50)]
    		public String SubSysKey { get; set; }

			[StringLength(200)]
    		public String RuleDescription { get; set; }

    		public Boolean IsDelete { get; set; }

    		public Int32 CreatBy { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime CreateTime { get; set; }

    		public Int32 UpdateBy { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

		}
	}
	
	[MetadataType(typeof(PMS_RoleNestMappingMetadata))]
	public partial class PMS_RoleNestMapping
	{
		internal sealed class PMS_RoleNestMappingMetadata
		{
		
			[Required(ErrorMessage="Id is required")]
    		public Int32 Id { get; set; }

    		public Int32 ParentRoleId { get; set; }

    		public Int32 ChildRoleId { get; set; }

    		public Boolean IsDelete { get; set; }

    		public Int32 CreateBy { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime CreateTime { get; set; }

    		public Int32 UpdateBy { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

		}
	}
	
	[MetadataType(typeof(PMS_RoleRulesMappingMetadata))]
	public partial class PMS_RoleRulesMapping
	{
		internal sealed class PMS_RoleRulesMappingMetadata
		{
		
			[Required(ErrorMessage="Id is required")]
    		public Int32 Id { get; set; }

    		public Int32 RoleId { get; set; }

    		public Int32 RuleId { get; set; }

    		public Boolean IsDelete { get; set; }

    		public Int32 CreateBy { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime CreateTime { get; set; }

    		public Int32 UpdateBy { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

		}
	}
	
	[MetadataType(typeof(PMS_RuleResourceNodeMetadata))]
	public partial class PMS_RuleResourceNode
	{
		internal sealed class PMS_RuleResourceNodeMetadata
		{
		
			[Required(ErrorMessage="Node is required")]
    		public Int32 NodeId { get; set; }

			[StringLength(50)]
    		public String NodeValue { get; set; }

			[StringLength(50)]
    		public String NodeName { get; set; }

			[StringLength(50)]
    		public String ParentNodeValue { get; set; }

    		public Boolean HasAllChildren { get; set; }

    		public Int32 RuleId { get; set; }

    		public Boolean IsDelete { get; set; }

    		public Int32 CreatBy { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime CreateTime { get; set; }

    		public Int32 UpdateBy { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

		}
	}
	
	[MetadataType(typeof(PMS_RuleTypeMetadata))]
	public partial class PMS_RuleType
	{
		internal sealed class PMS_RuleTypeMetadata
		{
		
			[Required(ErrorMessage="Rule Type is required")]
    		public Int32 RuleTypeId { get; set; }

			[StringLength(50)]
    		public String RuleTypeKey { get; set; }

			[StringLength(50)]
    		public String RuleTypeName { get; set; }

    		public Int32 SourceType { get; set; }

			[StringLength(200)]
    		public String SourceName { get; set; }

			[StringLength(50)]
    		public String SubSysKey { get; set; }

    		public Boolean IsDelete { get; set; }

    		public Int32 CreateBy { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime CreateTime { get; set; }

    		public Int32 UpdateBy { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

		}
	}
	
	[MetadataType(typeof(PMS_SubSystemMetadata))]
	public partial class PMS_SubSystem
	{
		internal sealed class PMS_SubSystemMetadata
		{
		
			[Required(ErrorMessage="Sub Sys is required")]
    		public Int32 SubSysId { get; set; }

			[StringLength(50)]
    		public String SubSysKey { get; set; }

			[StringLength(50)]
    		public String SubSysName { get; set; }

    		public Boolean IsDelete { get; set; }

    		public Int32 CreateBy { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime CreateTime { get; set; }

    		public Int32 UpdateBy { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

		}
	}
	
	[MetadataType(typeof(PMS_UserRolesMappingMetadata))]
	public partial class PMS_UserRolesMapping
	{
		internal sealed class PMS_UserRolesMappingMetadata
		{
		
			[Required(ErrorMessage="Id is required")]
    		public Int32 Id { get; set; }

			[StringLength(20)]
    		public String UserCode { get; set; }

    		public Int32 RoleId { get; set; }

    		public Boolean IsDelete { get; set; }

    		public Int32 CreateBy { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime CreateTime { get; set; }

    		public Int32 UpdateBy { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

		}
	}
	
	[MetadataType(typeof(ProvinceMetadata))]
	public partial class Province
	{
		internal sealed class ProvinceMetadata
		{
		
			[Required(ErrorMessage="Province is required")]
			[StringLength(10)]
    		public String ProvinceID { get; set; }

			[Required(ErrorMessage="Province Name is required")]
			[StringLength(50)]
    		public String ProvinceName { get; set; }

			[StringLength(10)]
    		public String DistrictID { get; set; }

			[Required(ErrorMessage="Is Deleted is required")]
    		public Boolean IsDeleted { get; set; }

		}
	}
	
	[MetadataType(typeof(ReturnReasonMetadata))]
	public partial class ReturnReason
	{
		internal sealed class ReturnReasonMetadata
		{
		
			[Required(ErrorMessage="Reason is required")]
			[StringLength(4)]
    		public String ReasonID { get; set; }

			[Required(ErrorMessage="Type is required")]
			[StringLength(1)]
    		public String TypeID { get; set; }

			[Required(ErrorMessage="Reason is required")]
			[StringLength(50)]
    		public String Reason { get; set; }

    		public Int32 SortOrder { get; set; }

			[Required(ErrorMessage="Is Delete is required")]
    		public Boolean IsDelete { get; set; }

    		public Int32 CategoryId { get; set; }

		}
	}
	
	[MetadataType(typeof(RoleMetadata))]
	public partial class Role
	{
		internal sealed class RoleMetadata
		{
		
			[Required(ErrorMessage="Role is required")]
    		public Int32 RoleID { get; set; }

    		public Int32 RoleType { get; set; }

			[StringLength(50)]
    		public String RoleName { get; set; }

			[StringLength(50)]
    		public String RoleComment { get; set; }

    		public Int32 Sorting { get; set; }

    		public Boolean IsDeleted { get; set; }

    		public Int32 CreatBy { get; set; }

    		public Int32 CreatStation { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime CteatTime { get; set; }

    		public Int32 UpdateBy { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

    		public Int32 UpdateStation { get; set; }

		}
	}
	
	[MetadataType(typeof(RoleMenuMetadata))]
	public partial class RoleMenu
	{
		internal sealed class RoleMenuMetadata
		{
		
			[Required(ErrorMessage="Role Menu is required")]
    		public Int32 RoleMenuID { get; set; }

			[Required(ErrorMessage="Role is required")]
    		public Int32 RoleID { get; set; }

			[Required(ErrorMessage="Menu is required")]
    		public Int32 MenuID { get; set; }

			[Required(ErrorMessage="Is Deleted is required")]
    		public Boolean IsDeleted { get; set; }

			[Required(ErrorMessage="Creat By is required")]
    		public Int32 CreatBy { get; set; }

			[Required(ErrorMessage="Creat Station is required")]
    		public Int32 CreatStation { get; set; }

			[Required(ErrorMessage="Creat Time is required")]
			[DataType(DataType.DateTime)]
    		public DateTime CreatTime { get; set; }

			[Required(ErrorMessage="Update By is required")]
    		public Int32 UpdateBy { get; set; }

			[Required(ErrorMessage="Update Time is required")]
			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

			[Required(ErrorMessage="Update Station is required")]
    		public Int32 UpdateStation { get; set; }

		}
	}
	
	[MetadataType(typeof(ServiceLogMetadata))]
	public partial class ServiceLog
	{
		internal sealed class ServiceLogMetadata
		{
		
			[Required(ErrorMessage="Log is required")]
    		public Int64 LogID { get; set; }

			[StringLength(50)]
    		public String ServiceName { get; set; }

			[StringLength(50)]
    		public String LogType { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime StartTime { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime EndTime { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime CreateTime { get; set; }

    		public Int64 WayBillNo { get; set; }

			[StringLength(4000)]
    		public String ErrorInfo { get; set; }

			[StringLength(4000)]
    		public String SourceData { get; set; }

    		public Boolean ISDelete { get; set; }

    		public Boolean ISHandle { get; set; }

		}
	}
	
	[MetadataType(typeof(SourceStatusMappingMetadata))]
	public partial class SourceStatusMapping
	{
		internal sealed class SourceStatusMappingMetadata
		{
		
			[Required(ErrorMessage="Id is required")]
    		public Int32 Id { get; set; }

    		public Int32 SourceId { get; set; }

			[StringLength(20)]
    		public String SysStatus { get; set; }

			[StringLength(20)]
    		public String CustomerStatus { get; set; }

		}
	}
	
	[MetadataType(typeof(StatusCodeInfoMetadata))]
	public partial class StatusCodeInfo
	{
		internal sealed class StatusCodeInfoMetadata
		{
		
			[Required(ErrorMessage="Code Type is required")]
			[StringLength(20)]
    		public String CodeType { get; set; }

			[Required(ErrorMessage="Code No is required")]
			[StringLength(20)]
    		public String CodeNo { get; set; }

			[StringLength(50)]
    		public String CodeDesc { get; set; }

    		public Int32 OrderBy { get; set; }

    		public Int32 Enabled { get; set; }

			[StringLength(20)]
    		public String CreatBy { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime CreatDate { get; set; }

			[StringLength(20)]
    		public String UpdateBy { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime UpdateDate { get; set; }

		}
	}
	
	[MetadataType(typeof(StatusInfoMetadata))]
	public partial class StatusInfo
	{
		internal sealed class StatusInfoMetadata
		{
		
			[Required(ErrorMessage="Status Info is required")]
    		public Int64 StatusInfoID { get; set; }

    		public Int32 StatusTypeNO { get; set; }

			[StringLength(20)]
    		public String StatusType { get; set; }

			[StringLength(20)]
    		public String StatusNO { get; set; }

			[StringLength(100)]
    		public String StatusName { get; set; }

    		public Int32 OrderBy { get; set; }

			[StringLength(200)]
    		public String Remark { get; set; }

    		public Boolean IsDelete { get; set; }

			[StringLength(20)]
    		public String CreatBy { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime CreateTime { get; set; }

			[StringLength(20)]
    		public String UpdateBy { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

		}
	}
	
	[MetadataType(typeof(sysdiagramMetadata))]
	public partial class sysdiagram
	{
		internal sealed class sysdiagramMetadata
		{
		
			[Required(ErrorMessage="name is required")]
			[StringLength(128)]
    		public String name { get; set; }

			[Required(ErrorMessage="principal_id is required")]
    		public Int32 principal_id { get; set; }

			[Required(ErrorMessage="diagram_id is required")]
    		public Int32 diagram_id { get; set; }

    		public Int32 version { get; set; }

    		public Byte[] definition { get; set; }

		}
	}
	
	[MetadataType(typeof(TruckMetadata))]
	public partial class Truck
	{
		internal sealed class TruckMetadata
		{
		
			[Required(ErrorMessage="Truck is required")]
    		public Int64 TruckID { get; set; }

			[StringLength(20)]
    		public String TruckNo { get; set; }

			[StringLength(50)]
    		public String GpsID { get; set; }

			[StringLength(20)]
    		public String ProvinceID { get; set; }

			[StringLength(20)]
    		public String CityID { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime CreateTime { get; set; }

    		public Int32 CreateBy { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

    		public Int32 UpdateBy { get; set; }

    		public Boolean IsDelete { get; set; }

		}
	}
	
	[MetadataType(typeof(TurnStationMetadata))]
	public partial class TurnStation
	{
		internal sealed class TurnStationMetadata
		{
		
			[Required(ErrorMessage="Turn Station is required")]
    		public Int64 TurnStationID { get; set; }

			[Required(ErrorMessage="Waybill N O is required")]
    		public Int64 WaybillNO { get; set; }

			[Required(ErrorMessage="Status is required")]
			[StringLength(20)]
    		public String Status { get; set; }

    		public Int32 ApplyStation { get; set; }

    		public Int32 ApplyBy { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime TurnTime { get; set; }

    		public Int32 SendBy { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime SendTime { get; set; }

    		public Int32 RecipcorpStation { get; set; }

    		public Int32 RecipientBy { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime RecipTime { get; set; }

    		public Int32 ReasonType { get; set; }

			[StringLength(500)]
    		public String Reason { get; set; }

			[Required(ErrorMessage="Creat By is required")]
    		public Int32 CreatBy { get; set; }

			[Required(ErrorMessage="Creat Station is required")]
    		public Int32 CreatStation { get; set; }

			[Required(ErrorMessage="Creattime is required")]
			[DataType(DataType.DateTime)]
    		public DateTime Creattime { get; set; }

			[Required(ErrorMessage="Update By is required")]
    		public Int32 UpdateBy { get; set; }

			[Required(ErrorMessage="Update Time is required")]
			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

			[Required(ErrorMessage="Update Station is required")]
    		public Int32 UpdateStation { get; set; }

			[Required(ErrorMessage="Is Deleted is required")]
    		public Boolean IsDeleted { get; set; }

    		public Boolean IsSyn { get; set; }

			[DataType(DataType.EmailAddress)]
    		public Boolean IsSendEmail { get; set; }

    		public Boolean IsOk { get; set; }

    		public Boolean IsFast { get; set; }

    		public Int32 TranCompany { get; set; }

    		public Int32 TranManID { get; set; }

			[StringLength(20)]
    		public String TruckNO { get; set; }

		}
	}
	
	[MetadataType(typeof(UnionPayTradeMetadata))]
	public partial class UnionPayTrade
	{
		internal sealed class UnionPayTradeMetadata
		{
		
			[Required(ErrorMessage="Union Pay Trade is required")]
    		public Int64 UnionPayTradeID { get; set; }

			[StringLength(20)]
    		public String TradeType { get; set; }

			[StringLength(50)]
    		public String EnterpriseID { get; set; }

			[StringLength(20)]
    		public String PosCode { get; set; }

			[StringLength(6)]
    		public String TradeDate { get; set; }

			[StringLength(8)]
    		public String TradeTime { get; set; }

			[StringLength(50)]
    		public String TradeSwiftNumber { get; set; }

    		public Int64 WaybillNO { get; set; }

			[StringLength(80)]
    		public String ResultCode { get; set; }

			[StringLength(300)]
    		public String Scomment { get; set; }

			[StringLength(20)]
    		public String ProjectType { get; set; }

			[StringLength(50)]
    		public String CustmerName { get; set; }

    		public Decimal NeedAmount { get; set; }

			[StringLength(20)]
    		public String BackCode { get; set; }

			[StringLength(20)]
    		public String CardNO { get; set; }

			[StringLength(20)]
    		public String CertificateCode { get; set; }

			[StringLength(20)]
    		public String SearchCode { get; set; }

			[StringLength(8)]
    		public String AccountDate { get; set; }

    		public Int64 SourceUnionPayTradeID { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime CreatTime { get; set; }

			[StringLength(20)]
    		public String CreatBy { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

			[StringLength(20)]
    		public String Updateby { get; set; }

    		public Int32 DoType { get; set; }

			[StringLength(8)]
    		public String SourceTradeDate { get; set; }

			[StringLength(20)]
    		public String SourceCertificateCode { get; set; }

    		public Decimal TradeAmount { get; set; }

    		public Boolean IsDeleted { get; set; }

			[StringLength(6)]
    		public String FormerlyTradeDate { get; set; }

			[StringLength(12)]
    		public String FormerlySearchCode { get; set; }

		}
	}
	
	[MetadataType(typeof(UnionPayTradeLogMetadata))]
	public partial class UnionPayTradeLog
	{
		internal sealed class UnionPayTradeLogMetadata
		{
		
			[Required(ErrorMessage="Union Pay Trade Log is required")]
    		public Int64 UnionPayTradeLogID { get; set; }

			[StringLength(20)]
    		public String TradeType { get; set; }

			[StringLength(50)]
    		public String EnterpriseID { get; set; }

			[StringLength(20)]
    		public String PosCode { get; set; }

			[StringLength(6)]
    		public String TradeDate { get; set; }

			[StringLength(8)]
    		public String TradeTime { get; set; }

			[StringLength(50)]
    		public String TradeSwiftNumber { get; set; }

    		public Int64 WaybillNO { get; set; }

			[StringLength(80)]
    		public String ResultCode { get; set; }

			[StringLength(300)]
    		public String Scomment { get; set; }

			[StringLength(20)]
    		public String ProjectType { get; set; }

			[StringLength(50)]
    		public String CustmerName { get; set; }

    		public Decimal NeedAmount { get; set; }

			[StringLength(20)]
    		public String BackCode { get; set; }

			[StringLength(20)]
    		public String CardNO { get; set; }

			[StringLength(20)]
    		public String CertificateCode { get; set; }

			[StringLength(20)]
    		public String SearchCode { get; set; }

			[StringLength(8)]
    		public String AccountDate { get; set; }

    		public Int64 SourceUnionPayTradeLogID { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime CreatTime { get; set; }

			[StringLength(20)]
    		public String CreatBy { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

			[StringLength(20)]
    		public String Updateby { get; set; }

    		public Int32 DoType { get; set; }

			[StringLength(8)]
    		public String SourceTradeDate { get; set; }

			[StringLength(20)]
    		public String SourceCertificateCode { get; set; }

    		public Decimal TradeAmount { get; set; }

    		public Boolean IsDeleted { get; set; }

			[StringLength(6)]
    		public String FormerlyTradeDate { get; set; }

			[StringLength(12)]
    		public String FormerlySearchCode { get; set; }

		}
	}
	
	[MetadataType(typeof(UnusualWaybillMetadata))]
	public partial class UnusualWaybill
	{
		internal sealed class UnusualWaybillMetadata
		{
		
			[Required(ErrorMessage="Unusual Waybill is required")]
    		public Int64 UnusualWaybillID { get; set; }

    		public Int64 WaybillNO { get; set; }

			[StringLength(20)]
    		public String CustomerOrder { get; set; }

    		public Int32 DeliverStationID { get; set; }

    		public Int32 Status { get; set; }

			[StringLength(20)]
    		public String Reason { get; set; }

			[StringLength(200)]
    		public String Comment { get; set; }

    		public Int32 CreatBy { get; set; }

    		public Int32 CreatStation { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime CreatTime { get; set; }

    		public Int32 UpdateBy { get; set; }

    		public Int32 UpdateStation { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

    		public Boolean IsDelete { get; set; }

		}
	}
	
	[MetadataType(typeof(UnusualWaybillReplyMetadata))]
	public partial class UnusualWaybillReply
	{
		internal sealed class UnusualWaybillReplyMetadata
		{
		
			[Required(ErrorMessage="Reply is required")]
    		public Int64 ReplyID { get; set; }

    		public Int64 UnusualWaybillID { get; set; }

    		public Int64 WaybillNO { get; set; }

    		public Int32 ReplyManID { get; set; }

    		public Int32 ReplyStationID { get; set; }

			[StringLength(200)]
    		public String ReplyContect { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime ReplyTime { get; set; }

    		public Int32 CreatBy { get; set; }

    		public Int32 CreatStation { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime CreatTime { get; set; }

    		public Int32 UpdateBy { get; set; }

    		public Int32 UpdateStation { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

    		public Boolean IsDelete { get; set; }

		}
	}
	
	[MetadataType(typeof(UploadOrderRecordMetadata))]
	public partial class UploadOrderRecord
	{
		internal sealed class UploadOrderRecordMetadata
		{
		
			[Required(ErrorMessage="I D is required")]
    		public Int32 ID { get; set; }

			[Required(ErrorMessage="Batch No is required")]
    		public Int64 BatchNo { get; set; }

			[Required(ErrorMessage="Merchant is required")]
    		public Int32 MerchantID { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime CreateTime { get; set; }

    		public Int32 Quantity { get; set; }

			[StringLength(20)]
    		public String UserAccount { get; set; }

			[StringLength(200)]
    		public String Remark { get; set; }

    		public Boolean IsDeleted { get; set; }

    		public Boolean IsSucceed { get; set; }

			[StringLength(100)]
    		public String FileName { get; set; }

    		public EntityCollection<MerchantBaseInfo> MerchantBaseInfo { get; set; }

		}
	}
	
	[MetadataType(typeof(WarehouseMetadata))]
	public partial class Warehouse
	{
		internal sealed class WarehouseMetadata
		{
		
			[Required(ErrorMessage="Warehouse is required")]
			[StringLength(20)]
    		public String WarehouseId { get; set; }

			[Required(ErrorMessage="Warehouse Name is required")]
			[StringLength(40)]
    		public String WarehouseName { get; set; }

			[Required(ErrorMessage="District is required")]
			[StringLength(20)]
    		public String DistrictId { get; set; }

			[StringLength(50)]
    		public String Address { get; set; }

			[StringLength(10)]
    		public String Postalcode { get; set; }

			[StringLength(20)]
    		public String Manager { get; set; }

			[StringLength(20)]
			[DataType(DataType.PhoneNumber)]
    		public String Phone { get; set; }

			[StringLength(50)]
    		public String Fax { get; set; }

			[StringLength(50)]
			[DataType(DataType.EmailAddress)]
    		public String Email { get; set; }

			[Required(ErrorMessage="Is For Order is required")]
    		public Boolean IsForOrder { get; set; }

			[Required(ErrorMessage="Is Main is required")]
    		public Boolean IsMain { get; set; }

			[Required(ErrorMessage="Enable is required")]
    		public Boolean Enable { get; set; }

			[Required(ErrorMessage="Create By is required")]
			[StringLength(40)]
    		public String CreateBy { get; set; }

			[Required(ErrorMessage="Create Time is required")]
			[DataType(DataType.DateTime)]
    		public DateTime CreateTime { get; set; }

			[Required(ErrorMessage="Update By is required")]
			[StringLength(40)]
    		public String UpdateBy { get; set; }

			[Required(ErrorMessage="Update Time is required")]
			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

    		public Int32 HouseType { get; set; }

    		public Int32 IsAllowQuality { get; set; }

    		public Int32 WarehouseType { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime ForbidLoginStart { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime ForbidLoginEnd { get; set; }

    		public Int32 RedeployType { get; set; }

    		public Int32 SourceId { get; set; }

		}
	}
	
	[MetadataType(typeof(WaybillMetadata))]
	public partial class Waybill
	{
		internal sealed class WaybillMetadata
		{
		
			[Required(ErrorMessage="Waybill N O is required")]
    		public Int64 WaybillNO { get; set; }

			[Required(ErrorMessage="Status is required")]
			[StringLength(20)]
    		public String Status { get; set; }

			[Required(ErrorMessage="Waybill Type is required")]
			[StringLength(20)]
    		public String WaybillType { get; set; }

			[Required(ErrorMessage="Sources is required")]
    		public Int32 Sources { get; set; }

			[StringLength(20)]
    		public String WarehouseId { get; set; }

			[StringLength(200)]
    		public String Tips { get; set; }

			[Required(ErrorMessage="Is Feedback is required")]
    		public Boolean IsFeedback { get; set; }

			[Required(ErrorMessage="Autodeliever is required")]
    		public Boolean Autodeliever { get; set; }

			[StringLength(20)]
    		public String CustomerCode { get; set; }

			[Required(ErrorMessage="Customer Order is required")]
			[StringLength(20)]
    		public String CustomerOrder { get; set; }

			[StringLength(20)]
    		public String CustomerBatchNO { get; set; }

			[Required(ErrorMessage="Is Get Goods is required")]
    		public Boolean IsGetGoods { get; set; }

			[Required(ErrorMessage="Is Authorized is required")]
    		public Boolean IsAuthorized { get; set; }

			[Required(ErrorMessage="Abnormal Staus is required")]
    		public Boolean AbnormalStaus { get; set; }

    		public Int32 DeliverStationID { get; set; }

    		public Int32 DeliverManID { get; set; }

    		public Int64 TurnstationId { get; set; }

    		public Int64 WaybillIntoStationID { get; set; }

    		public Int64 WaybillDealID { get; set; }

			[Required(ErrorMessage="Creat By is required")]
    		public Int32 CreatBy { get; set; }

			[Required(ErrorMessage="Creat Station is required")]
    		public Int32 CreatStation { get; set; }

			[Required(ErrorMessage="Creat Time is required")]
			[DataType(DataType.DateTime)]
    		public DateTime CreatTime { get; set; }

			[Required(ErrorMessage="Update By is required")]
    		public Int32 UpdateBy { get; set; }

			[Required(ErrorMessage="Update Station is required")]
    		public Int32 UpdateStation { get; set; }

			[Required(ErrorMessage="Update Time is required")]
			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

			[Required(ErrorMessage="Is Delete is required")]
    		public Boolean IsDelete { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime SynTime { get; set; }

    		public Boolean IsPrinted { get; set; }

			[StringLength(2)]
    		public String TransferID { get; set; }

			[StringLength(2)]
    		public String PaymentTypeID { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime AssignTime { get; set; }

    		public Boolean IsSyn { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime BatchCreatTime { get; set; }

    		public Int32 BackStatus { get; set; }

    		public Int32 GisStatus { get; set; }

			[StringLength(20)]
    		public String PerFormCode { get; set; }

		}
	}
	
	[MetadataType(typeof(WaybillBackStationMetadata))]
	public partial class WaybillBackStation
	{
		internal sealed class WaybillBackStationMetadata
		{
		
			[Required(ErrorMessage="Waybill Back Station is required")]
    		public Int64 WaybillBackStationID { get; set; }

    		public Int64 WaybillNO { get; set; }

    		public Decimal NeedAmount { get; set; }

    		public Decimal FactAmount { get; set; }

    		public Decimal NeedBackAmount { get; set; }

    		public Decimal FactBackAmount { get; set; }

			[StringLength(20)]
    		public String SignStatus { get; set; }

			[StringLength(20)]
    		public String AcceptType { get; set; }

			[StringLength(20)]
    		public String Remark { get; set; }

    		public Int32 DeliverMan { get; set; }

    		public Int32 DeliverStation { get; set; }

    		public Int32 CreatBy { get; set; }

    		public Int32 CreatStation { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime CreatTime { get; set; }

    		public Int32 UpdateBy { get; set; }

    		public Int32 UpdateStation { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

    		public Boolean IsDelete { get; set; }

    		public Int32 IsSyn { get; set; }

    		public Decimal DeductMoney { get; set; }

		}
	}
	
	[MetadataType(typeof(WaybillComplaintInfoMetadata))]
	public partial class WaybillComplaintInfo
	{
		internal sealed class WaybillComplaintInfoMetadata
		{
		
			[Required(ErrorMessage="Waybill Complaint is required")]
    		public Int64 WaybillComplaintId { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime Date { get; set; }

			[Required(ErrorMessage="Waybill No is required")]
    		public Int64 WaybillNo { get; set; }

			[StringLength(50)]
    		public String WaybillType { get; set; }

			[StringLength(50)]
    		public String CompanyName { get; set; }

    		public Int32 ExpressCompanyID { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime PostTime { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime PayTime { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime Deliverytime { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime HandInTime { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime Inputtime { get; set; }

			[StringLength(50)]
    		public String Province { get; set; }

			[StringLength(50)]
    		public String City { get; set; }

			[StringLength(50)]
    		public String Area { get; set; }

			[StringLength(50)]
    		public String Distrct { get; set; }

			[StringLength(60)]
    		public String PromiseDeliveryTime { get; set; }

			[StringLength(500)]
    		public String Content { get; set; }

			[StringLength(20)]
    		public String Paytype { get; set; }

			[StringLength(20)]
    		public String DeliveryRound { get; set; }

			[StringLength(20)]
    		public String PostRound { get; set; }

			[StringLength(20)]
    		public String IsDeliveryLate { get; set; }

			[StringLength(20)]
    		public String IsPostLate { get; set; }

			[StringLength(40)]
    		public String WareHouseName { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime ArriveTime { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime FirstContactTime { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime ExceptionReplyTime { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime PlanArriveTime { get; set; }

			[StringLength(50)]
    		public String DeliverMan { get; set; }

			[StringLength(500)]
    		public String ComplaintResson { get; set; }

    		public Boolean IsValide { get; set; }

			[StringLength(20)]
    		public String UndoReason { get; set; }

			[StringLength(20)]
    		public String ValideReason { get; set; }

			[StringLength(50)]
    		public String AppearReason { get; set; }

			[StringLength(500)]
    		public String Remark { get; set; }

			[StringLength(20)]
    		public String Status { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime CreateTime { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

    		public Int32 CreateBy { get; set; }

    		public Int32 UpdateBy { get; set; }

    		public Int32 Type { get; set; }

			[Required(ErrorMessage="Sources is required")]
    		public Int32 Sources { get; set; }

			[StringLength(50)]
    		public String SourcesName { get; set; }

		}
	}
	
	[MetadataType(typeof(WaybillComplaintLogMetadata))]
	public partial class WaybillComplaintLog
	{
		internal sealed class WaybillComplaintLogMetadata
		{
		
			[Required(ErrorMessage="Log is required")]
    		public Int64 LogId { get; set; }

    		public Int64 WaybillComplaintId { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime CommandTime { get; set; }

			[StringLength(20)]
    		public String CommandPerson { get; set; }

			[StringLength(40)]
    		public String CommandInfo { get; set; }

			[StringLength(200)]
    		public String Remark { get; set; }

    		public Boolean Isvalid { get; set; }

			[StringLength(55)]
    		public String UndoReson { get; set; }

			[StringLength(55)]
    		public String ValidReason { get; set; }

			[StringLength(55)]
    		public String AppearReason { get; set; }

		}
	}
	
	[MetadataType(typeof(WaybillDealMetadata))]
	public partial class WaybillDeal
	{
		internal sealed class WaybillDealMetadata
		{
		
			[Required(ErrorMessage="Waybill Deal is required")]
    		public Int64 WaybillDealID { get; set; }

    		public Int64 WaybillNO { get; set; }

    		public Int32 DealMan { get; set; }

    		public Int32 DealStation { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime DealTime { get; set; }

    		public Int32 DeliverMan { get; set; }

    		public Int32 CreatBy { get; set; }

    		public Int32 CreatStation { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime CreatTime { get; set; }

    		public Boolean IsSyn { get; set; }

		}
	}
	
	[MetadataType(typeof(WaybillExceptionMetadata))]
	public partial class WaybillException
	{
		internal sealed class WaybillExceptionMetadata
		{
		
			[Required(ErrorMessage="Exception Order Form is required")]
    		public Int64 ExceptionOrderFormId { get; set; }

			[Required(ErrorMessage="Waybill No is required")]
    		public Int64 WaybillNo { get; set; }

			[Required(ErrorMessage="Creator is required")]
			[StringLength(20)]
    		public String Creator { get; set; }

			[Required(ErrorMessage="Create Time is required")]
			[DataType(DataType.DateTime)]
    		public DateTime CreateTime { get; set; }

			[Required(ErrorMessage="Express Company is required")]
    		public Int32 ExpressCompanyID { get; set; }

			[Required(ErrorMessage="Express Company Type is required")]
    		public Byte ExpressCompanyType { get; set; }

			[Required(ErrorMessage="Exception Status is required")]
			[StringLength(20)]
    		public String ExceptionStatus { get; set; }

			[StringLength(2)]
    		public String ResoneType { get; set; }

			[Required(ErrorMessage="Resone is required")]
			[StringLength(1000)]
    		public String Resone { get; set; }

			[StringLength(20)]
    		public String StationSubmit { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime StationSubmitTime { get; set; }

			[StringLength(500)]
    		public String StationSubmitReason { get; set; }

			[Required(ErrorMessage="Disposal Status is required")]
			[StringLength(20)]
    		public String DisposalStatus { get; set; }

			[Required(ErrorMessage="Principal is required")]
			[StringLength(20)]
    		public String Principal { get; set; }

			[Required(ErrorMessage="Distributor is required")]
			[StringLength(20)]
    		public String Distributor { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime GetTime { get; set; }

			[Required(ErrorMessage="Disposal Result is required")]
			[StringLength(1000)]
    		public String DisposalResult { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime DisposalTime { get; set; }

			[Required(ErrorMessage="Is Delete is required")]
    		public Boolean IsDelete { get; set; }

    		public Int32 IsChanged { get; set; }

    		public Int64 LmsEOFId { get; set; }

		}
	}
	
	[MetadataType(typeof(WaybillExceptionLogMetadata))]
	public partial class WaybillExceptionLog
	{
		internal sealed class WaybillExceptionLogMetadata
		{
		
			[Required(ErrorMessage="Id is required")]
    		public Int64 Id { get; set; }

			[Required(ErrorMessage="Exception Order Form is required")]
    		public Int64 ExceptionOrderFormId { get; set; }

			[Required(ErrorMessage="Waybill No is required")]
    		public Int64 WaybillNo { get; set; }

			[Required(ErrorMessage="Operater is required")]
			[StringLength(20)]
    		public String Operater { get; set; }

			[Required(ErrorMessage="Log Time is required")]
			[DataType(DataType.DateTime)]
    		public DateTime LogTime { get; set; }

			[Required(ErrorMessage="I P is required")]
			[StringLength(20)]
    		public String IP { get; set; }

			[Required(ErrorMessage="Log Type is required")]
			[StringLength(20)]
    		public String LogType { get; set; }

			[Required(ErrorMessage="Remark is required")]
			[StringLength(1000)]
    		public String Remark { get; set; }

		}
	}
	
	[MetadataType(typeof(WaybillGoodsDetailMetadata))]
	public partial class WaybillGoodsDetail
	{
		internal sealed class WaybillGoodsDetailMetadata
		{
		
			[Required(ErrorMessage="Way Bill Goods is required")]
    		public Int64 WayBillGoodsID { get; set; }

			[Required(ErrorMessage="Way Bill N O is required")]
    		public Int64 WayBillNO { get; set; }

			[StringLength(100)]
    		public String GoodsCode { get; set; }

			[StringLength(200)]
    		public String GoodsName { get; set; }

			[StringLength(100)]
    		public String Size { get; set; }

			[StringLength(200)]
    		public String Remark { get; set; }

			[StringLength(100)]
    		public String Unit { get; set; }

    		public Decimal Num { get; set; }

    		public Decimal Price { get; set; }

    		public Decimal Amount { get; set; }

    		public Decimal Volume { get; set; }

    		public Decimal Weight { get; set; }

    		public Boolean IsDeleted { get; set; }

    		public Int32 CreatBy { get; set; }

    		public Int32 CreatStation { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime CreatTime { get; set; }

    		public Int32 UpdateBy { get; set; }

    		public Int32 UpdateStation { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

			[StringLength(4)]
    		public String ReasonID { get; set; }

		}
	}
	
	[MetadataType(typeof(WaybillInfoMetadata))]
	public partial class WaybillInfo
	{
		internal sealed class WaybillInfoMetadata
		{
		
			[Required(ErrorMessage="Waybill N O is required")]
    		public Int64 WaybillNO { get; set; }

			[StringLength(200)]
    		public String WayBillInfoCodes { get; set; }

			[StringLength(200)]
    		public String WayBillInfoNames { get; set; }

    		public Decimal WayBillInfoNums { get; set; }

    		public Decimal WayBillInfoWeight { get; set; }

    		public Decimal WayBillInfoVolume { get; set; }

			[StringLength(30)]
    		public String WayBillBoxNo { get; set; }

			[StringLength(50)]
    		public String WaybillBoxModel { get; set; }

    		public Boolean IsDeleted { get; set; }

		}
	}
	
	[MetadataType(typeof(WaybillIntoStationMetadata))]
	public partial class WaybillIntoStation
	{
		internal sealed class WaybillIntoStationMetadata
		{
		
			[Required(ErrorMessage="Waybill Into Station is required")]
    		public Int64 WaybillIntoStationID { get; set; }

    		public Int64 WaybillNO { get; set; }

			[StringLength(20)]
    		public String IntoStationType { get; set; }

    		public Int32 IntoMan { get; set; }

    		public Int32 IntoStation { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime IntoTime { get; set; }

    		public Int32 CreatBy { get; set; }

    		public Int32 CreatStation { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime CreatTime { get; set; }

    		public Int32 IsSyn { get; set; }

    		public Boolean IsChange { get; set; }

		}
	}
	
	[MetadataType(typeof(WaybillOutStationMetadata))]
	public partial class WaybillOutStation
	{
		internal sealed class WaybillOutStationMetadata
		{
		
			[Required(ErrorMessage="Waybill Out is required")]
    		public Int64 WaybillOutID { get; set; }

    		public Int64 WaybillNO { get; set; }

    		public Int32 DeliverMan { get; set; }

    		public Int32 DeliverStation { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime OutTime { get; set; }

    		public Int32 CreatBy { get; set; }

    		public Int32 CreatStation { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime CreatTime { get; set; }

		}
	}
	
	[MetadataType(typeof(WaybillSignInfoMetadata))]
	public partial class WaybillSignInfo
	{
		internal sealed class WaybillSignInfoMetadata
		{
		
			[Required(ErrorMessage="Waybill Sign Info is required")]
    		public Int64 WaybillSignInfoID { get; set; }

    		public Int64 WaybillNO { get; set; }

    		public Int32 SignType { get; set; }

			[StringLength(50)]
    		public String SignCustomer { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime SignTime { get; set; }

			[StringLength(20)]
    		public String SignStatus { get; set; }

			[StringLength(20)]
    		public String SignDescription { get; set; }

			[StringLength(200)]
    		public String SignReason { get; set; }

			[StringLength(20)]
    		public String AcceptType { get; set; }

    		public Decimal TransferFee { get; set; }

    		public Decimal NeedAmount { get; set; }

    		public Decimal FactAmount { get; set; }

    		public Decimal Amount { get; set; }

    		public Decimal PaidAmount { get; set; }

    		public Decimal NeedBackAmount { get; set; }

    		public Decimal FactBackAmount { get; set; }

    		public Decimal DinsureFee { get; set; }

    		public Decimal PackFee { get; set; }

    		public Int64 BackStationInofID { get; set; }

			[StringLength(20)]
    		public String DeductNotes { get; set; }

    		public Int32 CreatBy { get; set; }

    		public Int32 CreatStation { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime CreatTime { get; set; }

    		public Int32 UpdateBy { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

    		public Int32 UpdateStation { get; set; }

    		public Int32 IsDelete { get; set; }

    		public Decimal ReturnCash { get; set; }

    		public Int32 FinancialStatus { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime FinancialTime { get; set; }

		}
	}
	
	[MetadataType(typeof(WaybillTakeSendInfoMetadata))]
	public partial class WaybillTakeSendInfo
	{
		internal sealed class WaybillTakeSendInfoMetadata
		{
		
			[Required(ErrorMessage="Waybill Take Send is required")]
    		public Int32 WaybillTakeSendID { get; set; }

			[Required(ErrorMessage="Waybill N O is required")]
    		public Int64 WaybillNO { get; set; }

			[StringLength(50)]
    		public String SendBy { get; set; }

			[StringLength(100)]
    		public String SendAddress { get; set; }

			[StringLength(15)]
    		public String SendPost { get; set; }

			[StringLength(10)]
    		public String SendTel { get; set; }

			[StringLength(50)]
			[DataType(DataType.EmailAddress)]
    		public String SendEmail { get; set; }

			[StringLength(15)]
    		public String SendMobile { get; set; }

			[StringLength(10)]
    		public String SendFax { get; set; }

			[StringLength(50)]
    		public String SendProvince { get; set; }

			[StringLength(50)]
    		public String SendCity { get; set; }

			[StringLength(50)]
    		public String SendTimeType { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime SendGoodTime { get; set; }

			[StringLength(50)]
    		public String SendArea { get; set; }

			[StringLength(50)]
    		public String ReceiveBy { get; set; }

			[StringLength(100)]
    		public String ReceiveAddress { get; set; }

			[StringLength(100)]
			[DataType(DataType.EmailAddress)]
    		public String ReceiveEmail { get; set; }

			[StringLength(10)]
    		public String ReceiveTel { get; set; }

			[StringLength(15)]
    		public String ReceiveMobile { get; set; }

			[StringLength(15)]
    		public String ReceivePost { get; set; }

			[StringLength(10)]
    		public String ReceiveFax { get; set; }

			[StringLength(50)]
    		public String ReceiveProvince { get; set; }

			[StringLength(50)]
    		public String ReceiveCity { get; set; }

			[StringLength(100)]
    		public String ReceiveComment { get; set; }

			[StringLength(50)]
    		public String ReceiveArea { get; set; }

    		public Boolean IsDelete { get; set; }

    		public Boolean IsCallBefore { get; set; }

		}
	}
	
	[MetadataType(typeof(WaybillTransferMetadata))]
	public partial class WaybillTransfer
	{
		internal sealed class WaybillTransferMetadata
		{
		
			[Required(ErrorMessage="I D is required")]
    		public Int64 ID { get; set; }

    		public Int64 WaybillNo { get; set; }

    		public Int32 DriverId { get; set; }

			[StringLength(20)]
    		public String TruckNo { get; set; }

    		public Boolean IsPrint { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime CreateTime { get; set; }

    		public Int32 CreateBy { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

    		public Int32 UpdateBy { get; set; }

		}
	}
	
	[MetadataType(typeof(WaybillTruckMetadata))]
	public partial class WaybillTruck
	{
		internal sealed class WaybillTruckMetadata
		{
		
			[Required(ErrorMessage="Waybill N O Gps is required")]
    		public Int64 WaybillNOGpsID { get; set; }

    		public Int64 WaybillNO { get; set; }

    		public Int64 BatchNo { get; set; }

			[StringLength(20)]
    		public String TruckNO { get; set; }

			[StringLength(50)]
    		public String GpsID { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime CreateTime { get; set; }

    		public Int32 CreateBy { get; set; }

			[DataType(DataType.DateTime)]
    		public DateTime UpdateTime { get; set; }

    		public Int32 UpdateBy { get; set; }

    		public Boolean IsDelete { get; set; }

    		public Int32 DriverID { get; set; }

		}
	}
	
	
}

